From a291700b41dcc8d92329773ead9b672eff70df03 Mon Sep 17 00:00:00 2001 From: Fang He Date: Thu, 4 Apr 2024 14:53:49 +0800 Subject: [PATCH] trying to fix github actions 12 --- .github/actions/makepkg/entrypoint.sh | 4 ++-- .github/workflows/build.yml | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/actions/makepkg/entrypoint.sh b/.github/actions/makepkg/entrypoint.sh index 6dc429b..9cba3d4 100755 --- a/.github/actions/makepkg/entrypoint.sh +++ b/.github/actions/makepkg/entrypoint.sh @@ -7,9 +7,9 @@ sudo sed -i '/^options=(/ s/\bdebug\b/!debug/' /etc/makepkg.conf sudo sed -i 's/#MAKEFLAGS="-j2"/MAKEFLAGS="-j$(nproc)"/' /etc/makepkg.conf sudo chown -R builder /github/workspace /github/home -mkdir -p /home/builder/pkgs +mkdir -p pkgs cd "${INPUT_PKG}" echo "Running makepkg with $PWD/PKGBUILD" makepkg -fs --noconfirm -mv -- *.pkg.tar.zst /home/builder/pkgs/ +mv -- *.pkg.tar.zst ../pkgs/ diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index aea2fc5..d71ef11 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,13 +18,15 @@ jobs: - name: Archive packages uses: actions/upload-artifact@v4 with: - path: /home/builder/pkgs/ + path: pkgs/ release: runs-on: ubuntu-latest needs: - build steps: - uses: actions/download-artifact@v4 + with: + path: pkgs/ - uses: dev-drprasad/delete-tag-and-release@v1.1 with: delete_release: true @@ -38,6 +40,6 @@ jobs: name: Optimized packages for AMD Zen 2 omitBody: true commit: ${{ github.sha }} - artifacts: "*.pkg.tar.zst" + artifacts: "pkgs/*" draft: false token: ${{ secrets.GITHUB_TOKEN }}