mirror of
https://github.com/terraform-docs/terraform-docs.git
synced 2026-03-27 12:58:35 +07:00
Bumps [dawidd6/action-homebrew-bump-formula](https://github.com/dawidd6/action-homebrew-bump-formula) from 3.8.0 to 3.10.1. - [Release notes](https://github.com/dawidd6/action-homebrew-bump-formula/releases) - [Commits](https://github.com/dawidd6/action-homebrew-bump-formula/compare/v3.8.0...v3.10.1) --- updated-dependencies: - dependency-name: dawidd6/action-homebrew-bump-formula dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
74 lines
2.2 KiB
YAML
74 lines
2.2 KiB
YAML
name: release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "v*.*.*"
|
|
- "!v*.*.*-*"
|
|
|
|
env:
|
|
GO_VERSION: "1.21.5"
|
|
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
|
|
|
|
jobs:
|
|
assets:
|
|
runs-on: ubuntu-latest
|
|
if: "!contains(github.event.head_commit.message, '[ci skip]')"
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: ${{ env.GO_VERSION }}
|
|
|
|
- name: Login to Docker
|
|
uses: docker/login-action@v3
|
|
if: env.REGISTRY_USERNAME != ''
|
|
with:
|
|
registry: quay.io
|
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|
|
|
|
- name: Run GoReleaser
|
|
uses: goreleaser/goreleaser-action@v3
|
|
if: env.REGISTRY_USERNAME != ''
|
|
with:
|
|
version: latest
|
|
args: release --rm-dist --skip-sign
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.COMMITTER_TOKEN }}
|
|
|
|
- name: Set version output
|
|
id: vars
|
|
run: echo ::set-output name=tag::${GITHUB_REF:11} # tag name without leading 'v'
|
|
|
|
- name: Update Chocolatey package
|
|
run: ./scripts/release/update-choco.sh "${{ steps.vars.outputs.tag }}"
|
|
|
|
- name: Update Chocolatey package
|
|
uses: drud/action-cross-commit@master
|
|
with:
|
|
source-folder: scripts/release/chocolatey-package
|
|
destination-repository: https://${{ secrets.COMMITTER_USERNAME }}:${{ secrets.COMMITTER_TOKEN }}@github.com/terraform-docs/chocolatey-package
|
|
destination-folder: .
|
|
destination-branch: main
|
|
git-user: terraform-docs-bot
|
|
git-user-email: bot@terraform-docs.io
|
|
git-commit-message: "Chocolatey update for terraform-docs version v${{ steps.vars.outputs.tag }}"
|
|
excludes: README.md:LICENSE:DCO:.git:.github
|
|
|
|
homebrew:
|
|
runs-on: ubuntu-latest
|
|
if: "!contains(github.event.head_commit.message, '[ci skip]')"
|
|
steps:
|
|
- name: Bump Homebrew formula version
|
|
uses: dawidd6/action-homebrew-bump-formula@v3.10.1
|
|
if: "!contains(github.ref, '-')" # skip prereleases
|
|
with:
|
|
token: ${{ secrets.COMMITTER_TOKEN }}
|
|
formula: terraform-docs
|