Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
bleuthoot-sven committed May 19, 2022
2 parents b1ffeb2 + a6d5efb commit 3a43792
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,15 @@ jobs:
run: dotnet restore
- name: Build Project
run: dotnet publish -p:PublishSingleFile=true -p:PublishReadyToRun=true -r win-x86 -c Release --self-contained true
- name: Resolve Short Commit Hash
if: startsWith(github.ref, 'refs/tags/')
id: get_hash
shell: bash
run: echo ::set-output name=hash::`git rev-parse --short HEAD`
- name: Archive Release
uses: thedoctor0/zip-release@master
with:
type: 'zip'
filename: LegacyInstaller-${{ steps.get_hash.outputs.hash }}.zip
filename: LegacyInstaller.zip
path: ./LegacyInstaller/bin/x86/Release/net6.0-windows/win-x86/publish/
- name: Create release
uses: "marvinpinto/action-automatic-releases@latest"
with:
prerelease: false
files: LegacyInstaller-${{ steps.get_hash.outputs.hash }}.zip
files: LegacyInstaller.zip
repo_token: "${{ secrets.RELEASE_TOKEN }}"

0 comments on commit 3a43792

Please sign in to comment.