Consistency features and bugs (#156) #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Release Installer | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- 'v**' | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
build_plugin: | |
name: Release Build - ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
include: | |
- os: windows-latest | |
build_script: win-build.sh | |
- os: macos-latest | |
build_script: mac-build.sh | |
- os: ubuntu-latest | |
build_script: linux-build.sh | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- uses: apple-actions/import-codesign-certs@v3 | |
if: runner.os == 'macOS' | |
with: | |
p12-file-base64: ${{ secrets.MAC_CERTS_P12 }} | |
p12-password: ${{ secrets.CERT_PWD }} | |
- name: Prepare for JUCE | |
uses: surge-synthesizer/sst-githubactions/prepare-for-juce@main | |
with: | |
os: ${{ runner.os }} | |
gccversion: 9 | |
- name: Build release version | |
run: | | |
export MAC_SIGNING_CERT="${{ secrets.MAC_SIGNING_CERT_NAME }}" | |
export MAC_INSTALLING_CERT="${{ secrets.MAC_INSTALLING_CERT_NAME }}" | |
export MAC_SIGNING_ID="${{ secrets.MAC_SIGNING_ID }}" | |
export MAC_SIGNING_1UPW="${{ secrets.MAC_SIGNING_1UPW }}" | |
export MAC_SIGNING_TEAM="${{ secrets.MAC_SIGNING_TEAM }}" | |
export SVER=`cat VERSION` | |
export GH=`git log -1 --format=%h` | |
STOCHAS_VERSION="${SVER}" ./scripts/${{ matrix.build_script }} | |
- name: Show Installer Directory | |
run: | | |
ls -l ./product | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
path: ./product | |
name: build-${{ matrix.os }} | |
publish-stochas-nightly: | |
name: Publish stochas Nightly | |
if: ${{ github.ref == 'refs/heads/main' && github.repository_owner == 'surge-synthesizer' }} | |
runs-on: ubuntu-latest | |
needs: [ build_plugin ] | |
steps: | |
- name: Upload to Nightly | |
uses: surge-synthesizer/sst-githubactions/upload-to-release@main | |
with: | |
tag: Nightly | |
reuse_tag: true | |
create_tag: false | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Post to Discord | |
uses: surge-synthesizer/sst-githubactions/discord-release-notify@main | |
with: | |
webhook: ${{ secrets.DISCORD_STOCHAS_WEBHOOK }} | |
tag: Nightly | |
title: "A New Stochas Nightly is Available" | |
publish-stochas-release: | |
name: Publish stochas Release | |
if: startsWith(github.ref, 'refs/tags/v') && github.repository_owner == 'surge-synthesizer' | |
runs-on: ubuntu-latest | |
needs: [ build_plugin ] | |
steps: | |
- name: Upload to Release | |
uses: surge-synthesizer/sst-githubactions/upload-to-release@main | |
with: | |
tag: ${{ github.ref_name }} | |
reuse_tag: false | |
create_tag: true | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Post to Discord | |
uses: surge-synthesizer/sst-githubactions/discord-release-notify@main | |
with: | |
webhook: ${{ secrets.DISCORD_STOCHAS_WEBHOOK }} | |
tag: ${{ github.ref_name }} | |
title: "A New Stochas Release is Available" | |
subtitle: "Release ${{ github.ref_name }}" | |