Skip to content

Commit

Permalink
change release procedure
Browse files Browse the repository at this point in the history
  • Loading branch information
capital-G committed Aug 12, 2024
1 parent 204b617 commit 31d4350
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
SC_SRC_PATH: ${{ github.workspace }}/supercollider
BUILD_PATH: ${{ github.workspace }}/build
INSTALL_PATH: ${{ github.workspace }}/install
ARCHIVE_NAME: OSCMessenger-${{ matrix.name }}.zip
ARCHIVE_NAME: OSCMessenger-${{ matrix.name }}-${{ github.sha }}.zip

steps:
- uses: actions/checkout@v4
Expand All @@ -44,7 +44,13 @@ jobs:
shell: bash
run: cmake --build build --target install --config Release

- uses: actions/upload-artifact@v4
- name: Zip up build (Unix)
run: zip -r "$ARCHIVE_NAME" install/

- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
if: success() && github.ref == 'refs/heads/main' # only deploy main
with:
name: "OSCMessenger_${{matrix.name}}_${{github.sha}}"
path: install/
repo_token: ${{ secrets.GITHUB_TOKEN }}
draft: true
file: ${{ env.ARCHIVE_NAME }}

0 comments on commit 31d4350

Please sign in to comment.