Skip to content

release

release #30

Workflow file for this run

name: release
on:
workflow_dispatch:
jobs:
macbuild:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: flucoma/actions/env@main
- uses: flucoma/actions/pd@v5
with:
branch: origin/${{ github.ref_name }}
- name: sign binaries
uses: flucoma/actions/distribution@main
with:
glob: '-e pd_darwin'
package: 'release-packaging'
output_type: 'dmg'
output: FluCoMa-PD-Mac
cert: ${{ secrets.CERT }}
certpwd: ${{ secrets.CERTPWD }}
teamid: ${{ secrets.WWDRTEAMID }}
apppwd: ${{ secrets.APPSTORECONNECTPWD }}
appusr: ${{ secrets.APPSTORECONNECTUSERNAME }}
- uses: actions/[email protected]
with:
name: macbuild
path: release-packaging/FluCoMa-PD-Mac.dmg
winbuild:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: flucoma/actions/env@main
- uses: flucoma/actions/pd@v5
with:
branch: origin/${{ github.ref_name }}
- name: compress archive
run: 7z a FluCoMa-PD-Windows.zip FluidCorpusManipulation
working-directory: release-packaging
- uses: actions/[email protected]
with:
name: winbuild
path: release-packaging/FluCoMa-PD-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/pd@v5
with:
branch: origin/${{ github.ref_name }}
- name: compress archive
run: tar -zcvf FluCoMa-PD-Linux.tar.gz FluidCorpusManipulation
working-directory: release-packaging
- uses: actions/[email protected]
with:
name: linuxbuild
path: release-packaging/FluCoMa-PD-Linux.tar.gz
- id: get-version
run: echo "version=$(cat flucoma.version.rc)" >> $GITHUB_OUTPUT
working-directory: build/_deps/flucoma-core-src
release:
runs-on: ubuntu-20.04
needs: [macbuild, winbuild, linuxbuild]
steps:
#### LINUX ####
- uses: actions/[email protected]
with:
name: linuxbuild
#### MAC ####
- uses: actions/[email protected]
with:
name: macbuild
#### WINDOWS ####
- uses: actions/[email protected]
with:
name: winbuild
- name: delete pre-existing release
uses: dev-drprasad/[email protected]
with:
delete_release: true # default: false
tag_name: ${{ needs.linuxbuild.outputs.version }} # tag name to delete
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- 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 PureData package. The build hash is ${{ github.sha }}"
files: FluCoMa*
prerelease: true
tag_name: ${{ needs.linuxbuild.outputs.version }}
target_commitish: ${{ github.sha }}
draft: false