forked from GoogleCloudPlatform/terraformer
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 1023 Bytes
/
release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: "release"
on:
push:
tags:
- "v*"
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