Automatic upgrade of terraform-provider-rootly #10
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: set env | |
run: echo "NOW=$(date +'%Y.%m.%d')" >> $GITHUB_ENV | |
- name: Set Node.js 21.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 21.x | |
- name: Install Node.js dependencies | |
run: yarn install | |
- name: Generate provider code | |
run: node generators/rootly/rootly.js | |
- 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 | |
- uses: "marvinpinto/action-automatic-releases@latest" | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
prerelease: false | |
files: | | |
terraformer-* |