Fix versioning
This commit is contained in:
@@ -16,6 +16,13 @@ jobs:
|
|||||||
- name: Makepkg
|
- name: Makepkg
|
||||||
run: |
|
run: |
|
||||||
cd external && makepkg -s --noconfirm
|
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
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
@@ -34,7 +41,7 @@ jobs:
|
|||||||
uses: https://github.com/softprops/action-gh-release@v1
|
uses: https://github.com/softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
files: ./dist/*.pkg.tar.zst
|
files: ./dist/*.pkg.tar.zst
|
||||||
tag_name: ${{ github.ref_name }}
|
tag_name: ${{ needs.build_arch.steps.pkg_version.outputs.version }}
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user