From 7d0eddf50beb897145621e57a3ec156f3f6bca44 Mon Sep 17 00:00:00 2001 From: Kevin Yue Date: Sun, 25 Feb 2024 22:28:27 -0500 Subject: [PATCH] chown --- .github/workflows/build.yaml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 10f7b0e..9e79194 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -25,7 +25,7 @@ jobs: if [[ "${{ github.ref }}" == "refs/tags/"* ]]; then echo "matrix=[\"ubuntu-latest\", \"arm64\"]" >> $GITHUB_OUTPUT else - echo "matrix=[\"ubuntu-latest\"]" >> $GITHUB_OUTPUT + echo "matrix=[\"arm64\"]" >> $GITHUB_OUTPUT fi tarball: @@ -54,6 +54,7 @@ jobs: gp/.build/tarball/*.tar.gz build-deb: + if: startsWith(github.ref, 'refs/tags/') needs: - setup-matrix - tarball @@ -95,6 +96,7 @@ jobs: globalprotect-openconnect-*/.build/deb/*.deb build-rpm: + if: startsWith(github.ref, 'refs/tags/') needs: - setup-matrix - tarball @@ -147,12 +149,14 @@ jobs: runs-on: ${{ matrix.os }} container: image: yuezk/gpdev:pkgbuild - # Add -u builder for arm64 - options: ${{ matrix.os == 'arm64' && '-u builder' || '-u user' }} credentials: username: ${{ secrets.DOCKER_HUB_USERNAME }} password: ${{ secrets.DOCKER_HUB_TOKEN }} steps: + - name: chown + run: | + sudo chown -R $USER:$USER . + ls -l - name: Download tarball uses: actions/download-artifact@v3 with: @@ -181,6 +185,7 @@ jobs: globalprotect-openconnect-*/.build/pkgbuild/*.pkg.tar.zst build-binary: + if: startsWith(github.ref, 'refs/tags/') needs: - setup-matrix - tarball @@ -223,6 +228,7 @@ jobs: globalprotect-openconnect-*/.build/binary/*.bin.tar.xz* build-gpgui: + if: startsWith(github.ref, 'refs/tags/') needs: - setup-matrix strategy: