feat: support default empty array in terraform #1207
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: | |
branches: | |
- main | |
permissions: | |
contents: write | |
jobs: | |
release: | |
name: Release | |
runs-on: windows-latest-16-cores | |
steps: | |
- name: Setup environment | |
run: |- | |
chcp 65001 #set code page to utf-8 | |
echo ("GOPRIVATE=github.com/speakeasy-api") >> $env:GITHUB_ENV | |
- name: Checkout repository | |
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
with: | |
fetch-depth: 0 | |
- name: Conventional Commits | |
uses: TriPSs/conventional-changelog-action@3a392e9aa44a72686b0fc13259a90d287dd0877c # v5.3.0 | |
with: | |
github-token: ${{ secrets.github_token }} | |
skip-commit: "true" | |
output-file: "false" | |
skip-on-empty: "false" | |
preset: conventionalcommits | |
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 | |
with: | |
go-version-file: "go.mod" | |
# More assembly might be required: Docker logins, GPG, etc. It all depends | |
# on your needs. | |
- name: Configure git for private modules | |
run: git config --global url."https://speakeasybot:${{ secrets.BOT_REPO_TOKEN }}@github.com".insteadOf "https://github.com" | |
- name: Setup Choco | |
uses: crazy-max/ghaction-chocolatey@0e015857dd851f84fcb7fb53380eb5c4c8202333 # v3.0.0 | |
with: | |
args: --version | |
- name: goreleaser | |
uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0 | |
with: | |
distribution: goreleaser | |
version: latest | |
args: release --clean | |
env: | |
GITHUB_TOKEN: ${{ secrets.BOT_REPO_TOKEN }} | |
CHOCOLATEY_API_KEY: ${{ secrets.CHOCOLATEY_API_KEY }} |