v1.0.0 #8
Workflow file for this run
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
name: "release" | |
on: | |
push: | |
tags: | |
- "*" | |
jobs: | |
release: | |
name: "Release" | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "1.21" | |
- name: Build for linux/amd64 | |
run: go build -o terraformer-rootly-linux-amd64 | |
- name: Build for linux/arm64 | |
run: GOOS=linux GOARCH=arm64 go build -o terraformer-rootly-linux-arm64 | |
- name: Build for mac | |
run: GOOS=darwin go build -o terraformer-rootly-darwin-amd64 | |
- name: Build for mac Apple Silicon | |
run: GOOS=darwin GOARCH=arm64 go build -o terraformer-rootly-darwin-arm64 | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: | | |
terraformer-rootly-linux-amd64 | |
terraformer-rootly-linux-arm64 | |
terraformer-rootly-darwin-amd64 | |
terraformer-rootly-darwin-arm64 |