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 30de99c commit 5809b35
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/tagged-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,14 @@ jobs:
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)
run: -
if [ "$RUNNER_OS" == "Windows" ]; then
echo "Windows Date"
$NOW=& Get-Date -format yyyy-MM-dd
echo "NOW=$NOW" >> $env:GITHUB_ENV
else
echo "*nix Date"
echo "NOW=$(date +'%Y.%m.%d')" >> $GITHUB_ENV
fi
if: matrix.platform == "windows-latest"

- name: Upload release assets
uses: softprops/action-gh-release@v2
Expand Down

0 comments on commit 5809b35

Please sign in to comment.