-
Notifications
You must be signed in to change notification settings - Fork 312
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b1b6e97
commit 6cf4918
Showing
3 changed files
with
137 additions
and
17 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
name: Release | ||
on: | ||
workflow_call: | ||
# push: | ||
# tags: | ||
|
||
jobs: | ||
release-snapshot: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
max-parallel: 3 | ||
matrix: | ||
platform: | ||
- ReleaseGithubSnapshot | ||
# master only | ||
# - ReleaseGithubNightly | ||
- ReleaseDockerSnapshot | ||
- ReleaseDebianPPASnapshot | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.21.x' | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: env.sh | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Release snapshot | ||
run: | | ||
source env.sh | ||
go run mage.go -v ${{ matrix.platform }} | ||
# master only | ||
# - name: Release Go report | ||
# run: bin/release_goreport | ||
|
||
release-tag: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
max-parallel: 4 | ||
matrix: | ||
platform: | ||
- ReleaseGithubTag | ||
- ReleaseDockerTag | ||
- ReleaseDebianPPAPreRelease | ||
- ReleaseAndroidSDK | ||
- ReleaseAndroidProviderSDK | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.21.x' | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: env.sh | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Release tag | ||
run: | | ||
source build/env.sh | ||
go run mage.go -v ${{ matrix.platform }} | ||
post-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.21.x' | ||
- name: Generate Env | ||
run: go run mage.go -v GenerateEnvFile | ||
- name: Remove bucket | ||
run: go run mage.go -v RemoveBucket | ||
# master only | ||
# - name: Notify UptimeRobot | ||
# run: | | ||
# if [ "$NIGHTLY_BUILD" = "1" -o "$NIGHTLY_BUILD" = "T" -o "$NIGHTLY_BUILD" = "true" -o "$NIGHTLY_BUILD" = "True" -o "$NIGHTLY_BUILD" = "TRUE" ]; then | ||
# curl -so /dev/null -I "$NIGHTLY_UPTIMEROBOT" | ||
# fi | ||
- name: PR Avado | ||
run: go run mage.go -v CreateAvadoPR | ||
|
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