mirror of
https://github.com/terraform-docs/terraform-docs.git
synced 2026-03-27 12:58:35 +07:00
* Bump homebrew formula version on release * Add readme to homebrew folder for more information
55 lines
1.3 KiB
YAML
55 lines
1.3 KiB
YAML
name: release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*.*.*'
|
|
- '!v*.*.*-*'
|
|
|
|
jobs:
|
|
release:
|
|
name: Release
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Set up Go 1.13.x
|
|
uses: actions/setup-go@v1
|
|
with:
|
|
go-version: 1.13.x
|
|
id: go
|
|
|
|
- name: Check out code into the Go module directory
|
|
uses: actions/checkout@v1
|
|
|
|
- name: Build binaries for all OS/ARCH platforms
|
|
run: |
|
|
export PATH=$PATH:$(go env GOPATH)/bin
|
|
make gox build-all
|
|
|
|
- name: Generate Changelog
|
|
run: |
|
|
export PATH=$PATH:$(go env GOPATH)/bin
|
|
./scripts/release/release-note.sh
|
|
|
|
- name: Release
|
|
uses: softprops/action-gh-release@v1
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
with:
|
|
body_path: CURRENT-RELEASE-CHANGELOG.md
|
|
files: bin/terraform-docs-v*
|
|
draft: false
|
|
prerelease: false
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
homebrew:
|
|
name: Homebrew formula
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Bump Homebrew formula version
|
|
uses: mislav/bump-homebrew-formula-action@v1.4
|
|
if: "!contains(github.ref, '-')" # skip prereleases
|
|
with:
|
|
formula-name: terraform-docs
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|