diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 8041c92..7f8ff4d 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -3,26 +3,19 @@ on: branches: - main - test - -env: - NUGET_URL: https://git.claremontmakerspace.org/api/packages/${{ github.repository_owner }}/nuget/index.json - jobs: Build-Chocolatey-Packages: runs-on: ubuntu-latest - container: chocolatey/choco + container: catthehacker/ubuntu:act-latest steps: - name: Checkout uses: actions/checkout@v3 - name: Chocolatey Pack - run: | - for package in */ - do - ( - cd "$package" - echo "Packing $package" - choco pack - choco push --source "${{ env.NUGET_URL }}" --key "${{ secrets.GITHUB_TOKEN }}" - ) - done + uses: docker://chocolatey/choco:latest + with: + args: ./build-all.sh + env: + NUGET_URL: https://git.claremontmakerspace.org/api/packages/${{ github.repository_owner }}/nuget/index.json + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + diff --git a/build-all.sh b/build-all.sh new file mode 100755 index 0000000..4df3aa2 --- /dev/null +++ b/build-all.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +set -e + +for package in */ +do + ( + cd "$package" + echo "Packing $package" + choco pack + choco push --source "$NUGET_URL" --key "$GITHUB_TOKEN" + ) +done