release #32
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: release | |
on: | |
workflow_dispatch: | |
jobs: | |
windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: flucoma/actions/env@main | |
- uses: flucoma/actions/cli@main | |
with: | |
branch: origin/${{ github.ref_name }} | |
- name: compress archive | |
run: 7z a FluCoMa-CLI-Windows.zip FluidCorpusManipulation | |
working-directory: release-packaging | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: winbuild | |
path: release-packaging/FluCoMa-CLI-Windows.zip | |
mac: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: flucoma/actions/env@main | |
- uses: flucoma/actions/cli@main | |
with: | |
branch: origin/${{ github.ref_name }} | |
- name: sign binaries | |
uses: flucoma/actions/distribution@main | |
with: | |
glob: 'fluid -t x' | |
package: 'release-packaging' | |
codesign_options: 'runtime' | |
output_type: 'dmg' | |
output: FluCoMa-CLI-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: release-packaging/FluCoMa-CLI-Mac.dmg | |
linux: | |
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/cli@main | |
with: | |
branch: origin/${{ github.ref_name }} | |
- name: compress archive | |
run: tar -zcvf FluCoMa-CLI-Linux.tar.gz FluidCorpusManipulation | |
working-directory: release-packaging | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: linuxbuild | |
path: release-packaging/FluCoMa-CLI-Linux.tar.gz | |
- run: ls -r | |
- 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: [mac, windows, linux] | |
steps: | |
- uses: actions/download-artifact@v2 | |
with: | |
name: linuxbuild | |
- uses: actions/download-artifact@v2 | |
with: | |
name: macbuild | |
- uses: actions/download-artifact@v2 | |
with: | |
name: winbuild | |
#### UPLOAD RELEASE #### | |
- name: delete pre-existing release | |
uses: dev-drprasad/[email protected] | |
with: | |
delete_release: true # default: false | |
tag_name: ${{ needs.linux.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.linux.outputs.version }} | |
body: "This is a release build of the FluCoMa CLI tools. The build hash is ${{ github.sha }}" | |
files: FluCoMa* | |
prerelease: true | |
tag_name: ${{ needs.linux.outputs.version }} | |
target_commitish: ${{ github.sha }} | |
draft: false |