1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-13 03:19:54 +03:00

Add version to release name

This commit is contained in:
Marcelo Bezerra 2025-01-22 18:49:44 +01:00
parent 93e7035547
commit 8df8bd87d9

View file

@ -27,10 +27,14 @@ jobs:
with:
path: artifacts
merge-multiple: true
- name: Get version
run: |
VERSION=$(grep version package.json | cut -d: -f2 | cut -d\" -f2)
echo "VERSION=${VERSION}" >> $GITHUB_ENV
- name: Upload release artifacts
uses: softprops/action-gh-release@v2
with:
name: inav-configurator-dev-${{ steps.date.outputs.today }}-${{ github.run_number }}-${{ github.sha }}
name: inav-configurator-${{ env.VERSION }}-dev-${{ steps.date.outputs.today }}-${{ github.run_number }}-${{ github.sha }}
tag_name: v${{ steps.date.outputs.today }}.${{ github.run_number }}
# To create release on a different repo, we need a token setup
token: ${{ secrets.NIGHTLY_TOKEN }}