diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 0659a95..8041c92 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -10,7 +10,7 @@ env: jobs: Build-Chocolatey-Packages: runs-on: ubuntu-latest - container: catthehacker/ubuntu:act-latest + container: chocolatey/choco steps: - name: Checkout @@ -19,12 +19,10 @@ jobs: run: | for package in */ do - echo "Packing $package" - echo "$PWD/$package" - ls "$PWD/$package" - docker run --rm --volume="$PWD/$package:/build" --workdir=/build chocolatey/choco pwd - docker run --rm --volume="$PWD/$package:/build" --workdir=/build chocolatey/choco ls - docker run --rm --volume="$PWD/$package:/build" --workdir=/build chocolatey/choco choco pack - docker run --rm --volume="$PWD/$package:/build" --workdir=/build chocolatey/choco choco push \ - --source "${{ env.NUGET_URL }}" --key "${{ secrets.GITHUB_TOKEN }}" + ( + cd "$package" + echo "Packing $package" + choco pack + choco push --source "${{ env.NUGET_URL }}" --key "${{ secrets.GITHUB_TOKEN }}" + ) done