Skip to content

Commit

Permalink
Add deploy job
Browse files Browse the repository at this point in the history
  • Loading branch information
jerry08 committed Jun 14, 2024
1 parent 182fa7b commit e931c8c
Showing 1 changed file with 41 additions and 1 deletion.
42 changes: 41 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,44 @@ jobs:
--repo ${{ github.event.repository.full_name }}
--title ${{ github.ref_name }}
--generate-notes
--verify-tag
--verify-tag
deploy:
needs: release

strategy:
matrix:
rid:
- win-arm64
- win-x86
- win-x64
- linux-x64
- osx-arm64
- osx-x64

runs-on: ubuntu-latest
timeout-minutes: 10

permissions:
actions: read
contents: write

steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: SoundCloudDownloader.${{ matrix.rid }}
path: SoundCloudDownloader/

- name: Create package
# Change into the artifacts directory to avoid including the directory itself in the zip archive
working-directory: SoundCloudDownloader/
run: zip -r ../SoundCloudDownloader.${{ matrix.rid }}.zip .

- name: Upload release asset
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: >
gh release upload ${{ github.ref_name }}
SoundCloudDownloader.${{ matrix.rid }}.zip
--repo ${{ github.event.repository.full_name }}

0 comments on commit e931c8c

Please sign in to comment.