This repository has been archived by the owner on Sep 9, 2022. It is now read-only.
forked from runatlantis/atlantis
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add GitHub Actions * Add GitHub Actions * Add GitHub Actions * Add GitHub Actions * Add GitHub Actions * Add GitHub Actions * Add GitHub Actions * Add GitHub Actions * Add GitHub Actions * Add GitHub Actions * Add GitHub Actions * Add GitHub Actions * Add GitHub Actions * Add GitHub Actions * Add GitHub Actions * Add GitHub Actions * Add GitHub Actions * Add GitHub Actions * Add GitHub Actions * Add GitHub Actions * Add GitHub Actions * Add GitHub Actions * Add GitHub Actions * Add GitHub Actions * Add GitHub Actions * Add GitHub Actions * Add GitHub Actions * Add GitHub Actions
- Loading branch information
Showing
2 changed files
with
53 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: 'Build Go binaries and attach to GitHub Release' | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
release: | ||
name: 'Build Go binaries and attach to GitHub Release' | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# Checkout the repo | ||
- name: 'Checkout' | ||
uses: actions/checkout@v1 | ||
|
||
# Build Go binaries | ||
- name: 'Build Go binaries' | ||
uses: cloudposse/actions/go/build@0.2.0 | ||
env: | ||
# OSes and architectures for `gox` to build for | ||
GOX_OSARCH: >- | ||
windows/386 | ||
windows/amd64 | ||
freebsd/arm | ||
netbsd/386 | ||
netbsd/amd64 | ||
netbsd/arm | ||
linux/s390x | ||
linux/arm | ||
darwin/386 | ||
darwin/amd64 | ||
linux/386 | ||
linux/amd64 | ||
freebsd/amd64 | ||
freebsd/386 | ||
openbsd/386 | ||
openbsd/amd64 | ||
# The action runs in a Docker container. | ||
# Inside the Docker container, the current repo will be available at `github.workspace` path. | ||
OUTPUT_PATH: ${{ github.workspace }}/release/atlantis_ | ||
# Since this fork of atlantis uses `runatlantis/atlantis` Go imports, we provide WORKING_DIR to the action. | ||
# The action will copy the current repo into WORKING_DIR, which has GOPATH structure. | ||
WORKING_DIR: ${{ github.workspace }}/../src/github.com/runatlantis/atlantis | ||
GOPATH: ${{ github.workspace }}/../ | ||
|
||
# Attach Go binaries to GitHub Release | ||
- name: 'Attach Go binaries to GitHub Release' | ||
uses: cloudposse/actions/github/release-assets@0.2.0 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
INPUT_PATH: ${{ github.workspace }}/release/atlantis_* |
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