Skip to content

Commit

Permalink
👷 update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
csc530 committed Jun 10, 2024
1 parent d488f4f commit 78bf98f
Showing 1 changed file with 20 additions and 9 deletions.
29 changes: 20 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,26 @@ on:

workflow_dispatch:

env:
GH_TOKEN: ${{ github.token }}

jobs:
setup-release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x

- name: Create Release
run: gh release create ${{ github.ref_name }} --draft

publish:
runs-on: ${{ matrix.os }}
needs: setup-release
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macOS-latest ]
Expand All @@ -33,14 +50,8 @@ jobs:
name: publish
path: ./publish/

# - name: zip
# run: bash zip -r ../${{ matrix.os }}_resumer_${{ github.ref_name }}.zip ../publish
# working-directory: ./publish

- name: zip files
- name: Zip Files
run: 7z a ./${{ matrix.os }}_resumer_${{ github.ref_name }}.zip ./publish

- name: Create GitHub Release
env:
GH_TOKEN: ${{ github.token }}
run: gh release create ${{ github.ref_name }} ${{ matrix.os }}_resumer_${{ github.ref_name }}.zip --draft
- name: Upload Release Asset
run: gh release upload ${{ github.ref_name }} ${{ matrix.os }}_resumer_${{ github.ref_name }}.zip

0 comments on commit 78bf98f

Please sign in to comment.