From 29f76f57f2155699434dbd2e47bb1671fb1f47e4 Mon Sep 17 00:00:00 2001 From: RiverOnVenus Date: Sat, 27 Apr 2024 12:09:59 +0800 Subject: [PATCH] ci: add release replace upload artifact with release --- .github/workflows/push_aur.yml | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/.github/workflows/push_aur.yml b/.github/workflows/push_aur.yml index 724b24c..a9a3f59 100644 --- a/.github/workflows/push_aur.yml +++ b/.github/workflows/push_aur.yml @@ -42,20 +42,14 @@ jobs: with: path: ${{ matrix.pkgname }} - - name: Handle epoch - id: epoch - run: | - oldname="${{ steps.build-test.outputs.pkgfile }}" - newname="$(echo "$oldname" | sed -e 's/[^A-Za-z0-9._-]/_/g')" - if [[ "$oldname" != "$newname" ]]; then - mv "$oldname" "$newname" - fi - echo "pkgfile=$newname" >> "$GITHUB_OUTPUT" - - - uses: actions/upload-artifact@v4 + - name: Release + uses: ncipollo/release-action@v1.14.0 with: - name: ${{ matrix.pkgname }}-${{ github.run_id }} - path: ${{ steps.epoch.outputs.pkgfile }} + allowUpdates: true + tag: "packages" + commit: master + artifacts: "./*.zst" + token: ${{ secrets.GITHUB_TOKEN }} - name: Clone AUR and update run: |