-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update workflows to go-auto-release * Update workflows to go-auto-release * Update workflows to go-auto-release * Update workflows to go-auto-release * Update workflows to go-auto-release
- Loading branch information
Showing
6 changed files
with
46 additions
and
203 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,75 +1,15 @@ | ||
# This GitHub action publish assets for release when a tag is created. | ||
name: release | ||
name: Release | ||
on: | ||
push: | ||
tags: | ||
- "*" | ||
release: | ||
types: [published] | ||
|
||
workflow_dispatch: | ||
permissions: {} | ||
|
||
jobs: | ||
goreleaser: | ||
runs-on: "self-hosted-large" | ||
steps: | ||
- name: Install Git & GPG | ||
run: |- | ||
sudo apt-get update && sudo apt-get install -y git gnupg2 | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Unshallow | ||
run: |- | ||
git fetch --prune --unshallow | ||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: "1.20" | ||
|
||
- name: Import GPG key | ||
id: import_gpg | ||
uses: crazy-max/ghaction-import-gpg@v5 | ||
with: | ||
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | ||
passphrase: ${{ secrets.GPG_PRIVATE_KEY_PASSPHRASE }} | ||
concurrency: | ||
group: ${{ github.workflow }} | ||
cancel-in-progress: false | ||
|
||
- name: Check disk space before | ||
shell: bash | ||
run: |- | ||
printf "\nPWD is %s\ndf -h %s\n\n" "$(pwd -P)" "$(pwd -P)" | ||
df -h $(pwd -P) | ||
if [[ -n $TMPDIR ]]; then | ||
printf "\n\nTMPDIR set to %s\ndf -h %s\n\n" "$TMPDIR" "$TMPDIR" | ||
df -h "$TMPDIR" | ||
else | ||
printf "\n\nTMPDIR not set, showing space in /tmp\n\n" | ||
df -h /tmp | ||
fi | ||
printf "\n\nAll disk space:\n" | ||
df -h | ||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v4 | ||
with: | ||
version: latest | ||
args: release --clean --parallelism 2 --timeout 180m | ||
env: | ||
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Check disk space after | ||
if: success() || failure() | ||
shell: bash | ||
run: |- | ||
printf "\nPWD is %s\ndf -h %s\n\n" "$(pwd -P)" "$(pwd -P)" | ||
df -h $(pwd -P) | ||
if [[ -n $TMPDIR ]]; then | ||
printf "\n\nTMPDIR set to %s\ndf -h %s\n\n" "$TMPDIR" "$TMPDIR" | ||
df -h "$TMPDIR" | ||
else | ||
printf "\n\nTMPDIR not set, showing space in /tmp\n\n" | ||
df -h /tmp | ||
fi | ||
printf "\n\nAll disk space:\n" | ||
df -h | ||
jobs: | ||
perform: | ||
uses: cloudposse/.github/.github/workflows/shared-release-branches.yml@main | ||
secrets: inherit |
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
This file was deleted.
Oops, something went wrong.