diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f543b88..5163760 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -98,4 +98,44 @@ jobs: --repo ${{ github.event.repository.full_name }} --title ${{ github.ref_name }} --generate-notes - --verify-tag \ No newline at end of file + --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 }} \ No newline at end of file