Skip to content

Commit

Permalink
Make releases based on version tags
Browse files Browse the repository at this point in the history
This uses the tags created by the builder workflow, so that a new
release should be created for each new version.
  • Loading branch information
lunkwill42 committed Dec 18, 2024
1 parent 653cf5b commit 48deadf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,14 @@ jobs:
fi
echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
echo "nav_version=$(cat version.txt)" >> $GITHUB_OUTPUT
echo "expected_tag=v$(cat version.txt)" >> $GITHUB_OUTPUT
- name: Publish artifacts as release
uses: ncipollo/release-action@v1
with:
artifacts: "navappliance.zip,version.txt"
name: ${{ steps.details.outputs.date }}
name: ${{ steps.details.outputs.nav_version }}
body: "Automated build on ${{ steps.details.outputs.date }}, using version ${{ steps.details.outputs.nav_version }} of NAV Debian package"
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
tag: master
tag: ${{ steps.details.outputs.expected_tag }}

0 comments on commit 48deadf

Please sign in to comment.