Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

Commit

Permalink
Add GitHub actions (#34)
Browse files Browse the repository at this point in the history
* 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
aknysh committed Oct 24, 2019
1 parent 95511e5 commit bf5ac0a
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 1 deletion.
52 changes: 52 additions & 0 deletions .github/workflows/release.yml
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_*
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"github.com/spf13/viper"
)

const atlantisVersion = "0.9.0.2+2019-10-14T12:25:00+00:00"
const atlantisVersion = "0.9.0.3+2019-10-24T05:00:00+00:00"

func main() {
v := viper.New()
Expand Down

0 comments on commit bf5ac0a

Please sign in to comment.