Skip to content

Commit

Permalink
update GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
saltydk committed Dec 25, 2021
1 parent f123610 commit ceb55d8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@ jobs:

- name: Install dependencies
run: dotnet restore


- name: Set version var
id: vars
run: echo ::set-output name=version::$(echo ${GITHUB_REF_NAME/refs\/tags\//} | cut -c2-)

- name: Publish application
run: dotnet publish -c Release -o "/home/runner/work/publish" -r ${{ matrix.arch }} --self-contained true -p:PublishTrimmed=true -p:PublishSingleFile=true -p:Version=${GITHUB_REF_NAME/refs\/tags\//:1}
run: dotnet publish -c Release -o "/home/runner/work/publish" -r ${{ matrix.arch }} --self-contained true -p:PublishTrimmed=true -p:PublishSingleFile=true -p:Version=${{ steps.vars.outputs.version }}

- name: Upload Binary
uses: actions/upload-release-asset@v1
Expand Down

0 comments on commit ceb55d8

Please sign in to comment.