Skip to content

Commit

Permalink
Push to env:GITHUB_ENV for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
pflooky committed Mar 27, 2024
1 parent 168620e commit 11bdf38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
with:
fetch-depth: 2
- name: Set version
run: echo "APP_VERSION=$(grep version gradle.properties | cut -d= -f2)" >> $GITHUB_ENV
run: echo "APP_VERSION=$(grep version gradle.properties | cut -d= -f2)" >> $env:GITHUB_ENV
- uses: actions/setup-java@v1
with:
java-version: '21'
Expand All @@ -86,7 +86,7 @@ jobs:
name: jars
path: app/build/libs/
- name: Package jar as exe
run: 'jpackage --main-jar "app-${{ env.APP_VERSION }}-all.jar" "@misc/jpackage/jpackage.cfg" "@misc/jpackage/jpackage-windows.cfg"'
run: 'jpackage --main-jar app-$env:APP_VERSION-all.jar "@misc/jpackage/jpackage.cfg" "@misc/jpackage/jpackage-windows.cfg"'
- name: Upload installer
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 11bdf38

Please sign in to comment.