Skip to content

Commit

Permalink
Descriptive artifacts and zip release (#4)
Browse files Browse the repository at this point in the history
* Replace needs with if

* Removing -y in hopes to get choco working

* Update build_release.yml

* Update build_release.yml

* Try to use outputs instead of env

* Remove quotes

* Make powershelly

* --raw-output from jq to strip quotes and fix typo
  • Loading branch information
tetov authored Feb 3, 2021
1 parent 6e81d48 commit 2752f0d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
uses: microsoft/[email protected]

- name: Install GitVersion CLI tool for upload artifact steps
run: choco --yes install GitVersion
run: choco install GitVersion

-
name: Restore nuget packages
Expand All @@ -33,12 +33,11 @@ jobs:
-
id: get-semver
name: Get SemVer version
run: echo "SEMVER=$(gitversion | jq .SemVer)" >> $GITHUB_ENV
run: echo SEMVER=$(gitversion | jq --raw-output .SemVer) | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append

-
name: Upload artifacts
uses: actions/upload-artifact@v2
if: steps.check-tag.outputs.match != 'true'
with:
name: chromodorisBV_${{ env.SEMVER }}
path: artifacts/dist/*
Expand All @@ -58,12 +57,12 @@ jobs:
if: steps.check-tag.outputs.match == 'true'
run: >
7z a -tzip
artifacts/dist/ChromodorisBV_${{ env.SEMVER }}.zip
artifacts/dist/ChromodorisBV_$Env:SEMVER.zip
artifacts/dist/*
-
name: Create release on semver tag
needs: create-zip
if: steps.check-tag.outputs.match == 'true'
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 2752f0d

Please sign in to comment.