Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Flangvik authored Jan 20, 2023
1 parent eef62bc commit a9cc069
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,24 @@ jobs:
dotnet publish $PWD/TeamFiltration/ -c ${{ matrix.release.type }} -r osx-x64 -p:PublishSingleFile=true --self-contained true --output $PWD/TeamFiltrationRelease/Mac/ -p:Version=${VERSION:1}
- name: Zip Windows
continue-on-error: true
if: "! startsWith(github.event_name, 'pull_request')"
run: 7z a -tzip -mx9 TeamFiltration-Win-${{ github.ref_name }}-${{ matrix.release.suffix }}.zip $PWD/TeamFiltrationRelease/Windows/TeamFiltration.exe $PWD/*.json
run: 7z a -tzip -mx9 TeamFiltration-Win-${{ github.ref_name }}.zip $PWD/TeamFiltrationRelease/Windows/TeamFiltration.exe $PWD/*.json

- name: Zip Linux
continue-on-error: true
if: "! startsWith(github.event_name, 'pull_request')"
run: 7z a -tzip -mx9 TeamFiltration-Linux-${{ github.ref_name }}-${{ matrix.release.suffix }}.zip $PWD/TeamFiltrationRelease/Linux/TeamFiltration $PWD/*.json
run: 7z a -tzip -mx9 TeamFiltration-Linux-${{ github.ref_name }}.zip $PWD/TeamFiltrationRelease/Linux/TeamFiltration $PWD/*.json

- name: Zip Mac
continue-on-error: true
if: "! startsWith(github.event_name, 'pull_request')"
run: 7z a -tzip -mx9 TeamFiltration-Mac-${{ github.ref_name }}-${{ matrix.release.suffix }}.zip $PWD/TeamFiltrationRelease/Mac/TeamFiltration $PWD/*.json
run: 7z a -tzip -mx9 TeamFiltration-Mac-${{ github.ref_name }}.zip $PWD/TeamFiltrationRelease/Mac/TeamFiltration $PWD/*.json

- name: Upload to Release
uses: softprops/action-gh-release@v1
with:
files: |
TeamFiltration-Win-${{ github.ref_name }}-${{ matrix.release.suffix }}.zip
TeamFiltration-Linux-${{ github.ref_name }}-${{ matrix.release.suffix }}.zip
TeamFiltration-Mac-${{ github.ref_name }}-${{ matrix.release.suffix }}.zip
TeamFiltration-Win-${{ github.ref_name }}.zip
TeamFiltration-Linux-${{ github.ref_name }}.zip
TeamFiltration-Mac-${{ github.ref_name }}-.zip

0 comments on commit a9cc069

Please sign in to comment.