You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
106 lines
2.8 KiB
YAML
106 lines
2.8 KiB
YAML
name: release
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
macbuild:
|
|
runs-on: macos-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: flucoma/actions/env@main
|
|
- uses: flucoma/actions/sc@main
|
|
with:
|
|
branch: origin/production
|
|
|
|
- name: sign binaries
|
|
uses: flucoma/actions/distribution@main
|
|
with:
|
|
glob: '-e scx'
|
|
package: 'install'
|
|
output_type: 'dmg'
|
|
output: FluCoMa-SC-Mac
|
|
cert: ${{ secrets.CERT }}
|
|
certpwd: ${{ secrets.CERTPWD }}
|
|
teamid: ${{ secrets.WWDRTEAMID }}
|
|
apppwd: ${{ secrets.APPSTORECONNECTPWD }}
|
|
appusr: ${{ secrets.APPSTORECONNECTUSERNAME }}
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: macbuild
|
|
path: install/FluCoMa-SC-Mac.dmg
|
|
|
|
winbuild:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: flucoma/actions/env@main
|
|
- uses: flucoma/actions/sc@main
|
|
with:
|
|
branch: origin/production
|
|
|
|
- name: remove pdb files
|
|
run: Remove-Item install -Recurse -Include *.pdb
|
|
|
|
- name: compress archive
|
|
run: 7z a FluCoMa-SC-Windows.zip FluidCorpusManipulation
|
|
working-directory: install
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: winbuild
|
|
path: install/FluCoMa-SC-Windows.zip
|
|
|
|
linuxbuild:
|
|
runs-on: ubuntu-20.04
|
|
outputs:
|
|
version: ${{ steps.get-version.outputs.version }}
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: flucoma/actions/env@main
|
|
- uses: flucoma/actions/sc@main
|
|
with:
|
|
branch: origin/production
|
|
|
|
- name: compress archive
|
|
run: tar -zcvf FluCoMa-SC-Linux.tar.gz FluidCorpusManipulation
|
|
working-directory: install
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: linuxbuild
|
|
path: install/FluCoMa-SC-Linux.tar.gz
|
|
|
|
- id: get-version
|
|
run: echo "::set-output name=version::$(cat flucoma.version.rc)"
|
|
working-directory: build/_deps/flucoma-core-src
|
|
|
|
release:
|
|
runs-on: ubuntu-20.04
|
|
needs: [macbuild, winbuild, linuxbuild]
|
|
|
|
steps:
|
|
- uses: actions/download-artifact@v2
|
|
with:
|
|
name: macbuild
|
|
|
|
- uses: actions/download-artifact@v2
|
|
with:
|
|
name: winbuild
|
|
|
|
- uses: actions/download-artifact@v2
|
|
with:
|
|
name: linuxbuild
|
|
|
|
- name: package and upload
|
|
uses: softprops/action-gh-release@v1
|
|
with:
|
|
name: ${{ needs.linuxbuild.outputs.version }}
|
|
body: "This is a release build of the FluCoMa SuperCollider package. The build hash is ${{ github.sha }}"
|
|
files: FluCoMa*
|
|
prerelease: true
|
|
tag_name: ${{ needs.linuxbuild.outputs.version }}
|
|
draft: false
|
|
|