-
Notifications
You must be signed in to change notification settings - Fork 6
112 lines (93 loc) · 2.97 KB
/
nightly.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
name: nightly
on:
workflow_dispatch:
push:
branches: [ main ]
concurrency:
group: environment-${{ github.ref }}
cancel-in-progress: true
jobs:
windows:
runs-on: windows-latest
steps:
- 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-nightly.zip FluidCorpusManipulation
working-directory: release-packaging
- uses: actions/upload-artifact@v3
with:
name: winbuild
path: release-packaging/FluCoMa-CLI-Windows-nightly.zip
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: flucoma/actions/env@main
- uses: flucoma/actions/cli@main
with:
branch: origin/main
- 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@v3
with:
name: macbuild
path: release-packaging/FluCoMa-CLI-Mac-nightly.dmg
linux:
runs-on: ubuntu-20.04
steps:
- 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-nightly.tar.gz FluidCorpusManipulation
working-directory: release-packaging
- uses: actions/upload-artifact@v3
with:
name: linuxbuild
path: release-packaging/FluCoMa-CLI-Linux-nightly.tar.gz
release:
runs-on: ubuntu-20.04
needs: [windows, linux, macos]
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
- uses: dev-drprasad/[email protected]
with:
delete_release: true # default: false
tag_name: nightly # tag name to delete
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: create release
uses: ncipollo/release-action@v1
with:
name: FluCoMa CLI Nightly Release
artifacts: "FluCoMa*"
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 }}"
tag: nightly
prerelease: true
draft: false
allowUpdates: true