-
-
Notifications
You must be signed in to change notification settings - Fork 30
203 lines (184 loc) · 6.78 KB
/
release.yml
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
name: Create Releases
on:
release:
types:
- created
jobs:
package:
uses: ./.github/workflows/pkg-binary.yml
strategy:
fail-fast: false
matrix:
arch:
- x64
- arm64
os:
- linux
- macos
- win
with:
arch: ${{ matrix.arch }}
edge: ${{ github.event.release.prerelease }}
filename: lando-${{ matrix.os }}-${{ matrix.arch }}-${{ github.ref_name }}
node-version: "20"
os: ${{ matrix.os }}
version: ${{ github.event.release.tag_name }}
sign:
uses: ./.github/workflows/sign-binary.yml
needs:
- package
strategy:
fail-fast: false
matrix:
file:
- lando-linux-arm64-${{ github.ref_name }}
- lando-macos-arm64-${{ github.ref_name }}
- lando-win-arm64-${{ github.ref_name }}
- lando-linux-x64-${{ github.ref_name }}
- lando-macos-x64-${{ github.ref_name }}
- lando-win-x64-${{ github.ref_name }}
with:
download-pattern: packaged-lando-*
file: ${{ matrix.file }}
secrets:
apple-notary-user: ${{ secrets.APPLE_NOTARY_USER }}
apple-notary-password: ${{ secrets.APPLE_NOTARY_PASSWORD }}
certificate-data: ${{ contains(matrix.file, 'macos') && secrets.APPLE_CERT_DATA || secrets.KEYLOCKER_CLIENT_CERT }}
certificate-password: ${{ contains(matrix.file, 'macos') && secrets.APPLE_CERT_PASSWORD || secrets.KEYLOCKER_CLIENT_CERT_PASSWORD }}
keylocker-api-key: ${{ secrets.KEYLOCKER_API_KEY }}
keylocker-cert-sha1-hash: ${{ secrets.KEYLOCKER_CERT_SHA1_HASH }}
keylocker-keypair-alias: ${{ secrets.KEYLOCKER_KEYPAIR_ALIAS }}
build-release-binary-alias:
uses: ./.github/workflows/release-rename-binary.yml
needs:
- sign
strategy:
fail-fast: false
matrix:
arch:
- x64
- arm64
os:
- linux
- macos
- win
alias: ${{ github.event.release.prerelease == true && fromJson('["edge"]') || fromJson('["stable", "edge"]') }}
with:
source: lando-${{ matrix.os }}-${{ matrix.arch }}-${{ github.ref_name }}
destination: lando-${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.alias }}
download-pattern: signed-lando-*
build-release-binary-tag:
uses: ./.github/workflows/release-rename-binary.yml
needs:
- sign
strategy:
fail-fast: false
matrix:
arch:
- x64
- arm64
os:
- linux
- macos
- win
with:
source: lando-${{ matrix.os }}-${{ matrix.arch }}-${{ github.ref_name }}
destination: lando-${{ matrix.os }}-${{ matrix.arch }}-${{ github.ref_name }}
download-pattern: signed-lando-*
checksum:
uses: ./.github/workflows/generate-checksums.yml
needs:
- build-release-binary-alias
- build-release-binary-tag
with:
download-pattern: release-*-${{ github.ref_name }}*
flatten: true
show: true
upload-name: release-checksums-${{ github.ref_name }}
checksum-s3-aliases:
uses: ./.github/workflows/generate-checksums.yml
strategy:
fail-fast: false
matrix:
alias:
- edge
- ${{ github.event.release.prerelease == false && 'stable' || 'prerelease' }}
- ${{ github.ref_name }}
needs:
- build-release-binary-alias
- build-release-binary-tag
with:
download-pattern: release-*-${{ github.ref_name }}*
output: sha256sum-${{ matrix.alias }}.txt
flatten: true
show: true
upload-name: release-checksums${{ matrix.alias }}
deploy-releases-s3:
uses: ./.github/workflows/deploy-s3.yml
needs:
- checksum
- checksum-s3-aliases
with:
download-pattern: release-*
secrets:
aws-secret-access-key: ${{ secrets.S3_SECRET_ACCESS_KEY }}
aws-access-key-id: ${{ secrets.S3_ACCESS_KEY_ID }}
aws-region: us-east-1
deploy-releases-artifacts:
uses: ./.github/workflows/deploy-artifacts.yml
needs:
- checksum
with:
download-pattern: release-*
deploy-releases-releases:
uses: ./.github/workflows/deploy-releases.yml
needs:
- checksum
with:
download-pattern: release-*-${{ github.ref_name }}*
deploy-npm:
uses: ./.github/workflows/deploy-npm.yml
needs:
- checksum
secrets:
github-token: ${{ secrets.RTFM47_COAXIUM_INJECTOR }}
npm-token: ${{ secrets.NPM_DEPLOY_TOKEN }}
deploy-legacy-notifications:
runs-on: ubuntu-24.04
needs:
- checksum
env:
TERM: xterm
steps:
- name: Push release to lando/lando
uses: softprops/action-gh-release@v2
with:
repository: lando/lando
name: ${{ github.event.release.tag_name }}
draft: ${{ github.event.release.draft }}
prerelease: ${{ github.event.release.prerelease }}
tag_name: ${{ github.event.release.tag_name }}
token: ${{ secrets.RTFM47_COAXIUM_INJECTOR }}
body: |
**Starting with v3.21.0-beta.18, Lando is no longer distributed via package installers in here in this releases page!**
To install Lando please visit the [official install docs](https://docs.lando.dev/install).
## Changelogs
Lando now runs as a distributed plugin-based ecosystem so you will want to check the releases/changelogs in
the various [plugins](https://docs.lando.dev/plugins.html) for relevant notes.
[Click Here](https://github.com/lando/core/releases/tag/${{ github.event.release.tag_name }}) to check out the notes for `@lando/core@${{ github.event.release.tag_name }}`.
## Notes
* We will continue to push releases here for backwards compatibility, posterity, etc
* [Extended release notes](https://lando.dev/blog/2024/01/16/v321-extended.html)
- name: Push release to lando/cli
uses: softprops/action-gh-release@v2
with:
repository: lando/legacy-cli
name: ${{ github.event.release.tag_name }}
draft: ${{ github.event.release.draft }}
prerelease: ${{ github.event.release.prerelease }}
tag_name: ${{ github.event.release.tag_name }}
token: ${{ secrets.RTFM47_COAXIUM_INJECTOR }}
body: |
**Starting with v3.23.0, Lando CLI binaries are no longer distributed here in these releases!**
They are now available in the `@lando/core` [releases page](https://github.com/lando/core/releases) including [this ${{ github.event.release.tag_name }} release](https://github.com/lando/core/releases/tag/${{ github.event.release.tag_name }}).
All that said we don't recommned you use these binaries directly. Instead, to install Lando please visit the [official install docs](https://docs.lando.dev/install).