Skip to content

Commit e931c8c

Browse files
committed
Add deploy job
1 parent 182fa7b commit e931c8c

File tree

1 file changed

+41
-1
lines changed

1 file changed

+41
-1
lines changed

.github/workflows/main.yml

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,44 @@ jobs:
9898
--repo ${{ github.event.repository.full_name }}
9999
--title ${{ github.ref_name }}
100100
--generate-notes
101-
--verify-tag
101+
--verify-tag
102+
103+
deploy:
104+
needs: release
105+
106+
strategy:
107+
matrix:
108+
rid:
109+
- win-arm64
110+
- win-x86
111+
- win-x64
112+
- linux-x64
113+
- osx-arm64
114+
- osx-x64
115+
116+
runs-on: ubuntu-latest
117+
timeout-minutes: 10
118+
119+
permissions:
120+
actions: read
121+
contents: write
122+
123+
steps:
124+
- name: Download artifacts
125+
uses: actions/download-artifact@v4
126+
with:
127+
name: SoundCloudDownloader.${{ matrix.rid }}
128+
path: SoundCloudDownloader/
129+
130+
- name: Create package
131+
# Change into the artifacts directory to avoid including the directory itself in the zip archive
132+
working-directory: SoundCloudDownloader/
133+
run: zip -r ../SoundCloudDownloader.${{ matrix.rid }}.zip .
134+
135+
- name: Upload release asset
136+
env:
137+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
138+
run: >
139+
gh release upload ${{ github.ref_name }}
140+
SoundCloudDownloader.${{ matrix.rid }}.zip
141+
--repo ${{ github.event.repository.full_name }}

0 commit comments

Comments
 (0)