Skip to content

Commit

Permalink
ci: Set version during build
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed May 10, 2024
1 parent c1766ee commit 1662ff5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: true
- if: startsWith(github.ref, 'refs/tags/')
run: |
export VERSION="${GITHUB_REF_NAME#v}"
yq --inplace '.Version = strenv(VERSION)' src/*/manifest.json
- uses: AdamCarballo/streamdeck-distribution-tool@v1.0.2
with:
input: src/com.gabe565.nightscout.sdPlugin
Expand Down

0 comments on commit 1662ff5

Please sign in to comment.