Skip to content

Commit

Permalink
ci: add release
Browse files Browse the repository at this point in the history
replace upload artifact with release
  • Loading branch information
RiverOnVenus committed Apr 27, 2024
1 parent ed28690 commit 29f76f5
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/push_aur.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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: |
Expand Down

0 comments on commit 29f76f5

Please sign in to comment.