tfvars-atlantis-config/.github/workflows/release.yaml

34 lines
780 B
YAML
Raw Normal View History

2024-02-26 12:44:50 +00:00
on:
release:
types: [created]
permissions:
contents: write
packages: write
jobs:
2024-02-26 16:45:29 +00:00
releases-matrix:
name: Release
2024-02-26 12:44:50 +00:00
runs-on: ubuntu-latest
2024-02-26 16:45:29 +00:00
strategy:
matrix:
goos: [linux, windows, darwin]
goarch: ["386", amd64, arm64]
exclude:
- goarch: "386"
goos: darwin
- goarch: arm64
goos: windows
2024-02-26 12:44:50 +00:00
steps:
2024-02-26 16:45:29 +00:00
- uses: extractions/setup-just@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
2024-02-26 12:44:50 +00:00
- uses: actions/checkout@v4
- uses: wangyoucao577/go-release-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
2024-02-26 16:45:29 +00:00
pre_command: export CGO_ENABLED=0
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: "./go.mod"