Skip to content

Commit

Permalink
[Release] 1.0.2 (#34)
Browse files Browse the repository at this point in the history
* add signing test run

* only search for binaries matching fluid

* activate only ons pecific branches

* hardened runtime when building

* use dmg

* upload dmg

* stupid commit

* use custom dmg output

* use new output_type input

* use new volname

* change wildcard for upload

* update nightly to sign binaries

* remove signing workflow

* append nightly to name

* sign releases also

* remove nightly affix to name

* enforce concurrency of jobs
  • Loading branch information
jamesb93 authored Jul 7, 2022
1 parent 473b5f5 commit cc80902
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 40 deletions.
58 changes: 36 additions & 22 deletions .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
@@ -1,61 +1,75 @@
name: Nightly Releases
name: nightly

on:
push:
branches: [ dev, ci/** ]
workflow_dispatch:
push:
branches: [ dev ]

concurrency:
group: environment-${{ github.ref }}
cancel-in-progress: true

jobs:
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: flucoma/actions/env@v5
- uses: flucoma/actions/cli@v5
- uses: actions/checkout@v3
- uses: flucoma/actions/env@main
- uses: flucoma/actions/cli@main
with:
branch: origin/dev

- name: compress archive
run: 7z a FluCoMa-CLI-Windows-nightly.zip FluidCorpusManipulation
working-directory: release-packaging

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: winbuild
path: release-packaging/FluCoMa-CLI-Windows-nightly.zip

macos:
runs-on: macos-11
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: flucoma/actions/env@v5
- uses: flucoma/actions/cli@v5
- uses: actions/checkout@v3
- uses: flucoma/actions/env@main
- uses: flucoma/actions/cli@main
with:
branch: origin/dev

- name: compress archive
run: zip -r FluCoMa-CLI-Mac-nightly.zip FluidCorpusManipulation
working-directory: release-packaging
- 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-nightly
cert: ${{ secrets.CERT }}
certpwd: ${{ secrets.CERTPWD }}
teamid: ${{ secrets.WWDRTEAMID }}
apppwd: ${{ secrets.APPSTORECONNECTPWD }}
appusr: ${{ secrets.APPSTORECONNECTUSERNAME }}

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: macbuild
path: release-packaging/FluCoMa-CLI-Mac-nightly.zip
path: release-packaging/FluCoMa-CLI-Mac-nightly.dmg

linux:
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: flucoma/actions/env@v5
- uses: flucoma/actions/cli@v5
- uses: actions/checkout@v3
- uses: flucoma/actions/env@main
- uses: flucoma/actions/cli@main
with:
branch: origin/dev

- name: compress archive
run: tar -zcvf FluCoMa-CLI-Linux-nightly.tar.gz FluidCorpusManipulation
working-directory: release-packaging

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: linuxbuild
path: release-packaging/FluCoMa-CLI-Linux-nightly.tar.gz
Expand Down Expand Up @@ -88,7 +102,7 @@ jobs:
with:
name: FluCoMa CLI Nightly Release
body: "This is a nightly build of the FluCoMa CLI tools. As such, be warned there may be bugs or other unexpected behaviour. The build hash is ${{ github.sha }}"
files: FluCoMa-CLI-*
files: FluCoMa*
prerelease: true
tag_name: nightly
draft: false
Expand Down
46 changes: 28 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,60 +1,70 @@
name: Release
name: release
on:
workflow_dispatch:

jobs:
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: flucoma/actions/env@v5
- uses: flucoma/actions/cli@v5
- uses: actions/checkout@v3
- uses: flucoma/actions/env@main
- uses: flucoma/actions/cli@main
with:
branch: origin/main

- name: compress archive
run: 7z a FluCoMa-CLI-Windows.zip FluidCorpusManipulation
working-directory: release-packaging

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: winbuild
path: release-packaging/FluCoMa-CLI-Windows.zip

mac:
runs-on: macos-11
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: flucoma/actions/env@v5
- uses: flucoma/actions/cli@v5
- uses: actions/checkout@v3
- uses: flucoma/actions/env@main
- uses: flucoma/actions/cli@main
with:
branch: origin/main

- name: compress archive
run: zip -r FluCoMa-CLI-Mac.zip FluidCorpusManipulation
working-directory: release-packaging
- 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@v2
- uses: actions/upload-artifact@v3
with:
name: macbuild
path: release-packaging/FluCoMa-CLI-Mac.zip
path: release-packaging/FluCoMa-CLI-Mac.dmg

linux:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.get-version.outputs.version }}
steps:
- uses: actions/checkout@v2
- uses: flucoma/actions/env@v5
- uses: flucoma/actions/cli@v5
- uses: actions/checkout@v3
- uses: flucoma/actions/env@main
- uses: flucoma/actions/cli@main
with:
branch: origin/main

- name: compress archive
run: tar -zcvf FluCoMa-CLI-Linux.tar.gz FluidCorpusManipulation
working-directory: release-packaging

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: linuxbuild
path: release-packaging/FluCoMa-CLI-Linux.tar.gz
Expand Down

0 comments on commit cc80902

Please sign in to comment.