Fix versioning
This commit is contained in:
@@ -16,6 +16,13 @@ jobs:
|
||||
- name: Makepkg
|
||||
run: |
|
||||
cd external && makepkg -s --noconfirm
|
||||
- name: Extract package version
|
||||
id: pkg_version
|
||||
run: |
|
||||
PKGFILE=$(ls external/*.pkg.tar.zst)
|
||||
PKGVERSION=$(basename "$PKGFILE" | sed 's/^.*-\([0-9.]*\)-x86_64\.pkg\.tar\.zst$/\1/')
|
||||
echo "PKGVERSION=$PKGVERSION" >> $GITHUB_ENV
|
||||
echo "version=$PKGVERSION" >> $GITHUB_OUTPUT
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
@@ -34,7 +41,7 @@ jobs:
|
||||
uses: https://github.com/softprops/action-gh-release@v1
|
||||
with:
|
||||
files: ./dist/*.pkg.tar.zst
|
||||
tag_name: ${{ github.ref_name }}
|
||||
tag_name: ${{ needs.build_arch.steps.pkg_version.outputs.version }}
|
||||
draft: false
|
||||
prerelease: false
|
||||
env:
|
||||
|
||||
Reference in New Issue
Block a user