Skip to content

Commit

Permalink
Working on releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris-Schnaufer committed Jul 23, 2024
1 parent 5f4f35f commit d23a514
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/tagged-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,15 @@ jobs:
run: cd "Sanimal FX" && mvn -U compile package && mv target/SanimalFX-1.0-SNAPSHOT-jar-with-dependencies.jar ../sparcd-${{ matrix.platform }}.jar

- name: set date env var
if: "${{ matrix.platform }}" != "windows-latest"
run: echo "NOW=$(date +'%Y.%m.%d')" >> $GITHUB_ENV

- name: set date env var
run: echo "NOW=$(date +'%Y.%m.%d')" >> $GITHUB_ENV
if: ${{ matrix.platform }} != "windows-latest"

- name: set date env var (Windows)
if: "${{ matrix.platform }}" == "windows-latest"
run: $NOW=& Get-Date -format yyyy.MM.dd; echo "NOW=$NOW" >> $env:GITHUB_ENV
run: $NOW=& Get-Date -format yyyy-MM-dd; echo "NOW=$NOW" >> $env:GITHUB_ENV
if: ${{ matrix.platform }} == "windows-latest"

- name: Upload release assets
uses: softprops/action-gh-release@v2
Expand All @@ -48,3 +51,4 @@ jobs:
fail_on_unmatched_files: true
tag_name: Release-Build-${{ env.NOW }}
make_latest: true

0 comments on commit d23a514

Please sign in to comment.