docs(main): fix bot config (#2976) #1
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 | |
env: | |
# Common versions | |
GO_VERSION: "1.20" | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- "*" | |
jobs: | |
goreleaser: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup Golang with cache | |
uses: magnetikonline/action-golang-cache@v3 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: Prepare | |
id: prepare | |
run: | | |
TAG=${GITHUB_REF#refs/tags/} | |
echo tag_name=${TAG} >> $GITHUB_OUTPUT | |
- name: Install Dependencies | |
run: | | |
sudo apt update && sudo apt install -y gcc-aarch64-linux-gnu \ | |
libbtrfs-dev libgpgme-dev libdevmapper-dev \ | |
qemu-user-static binfmt-support | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GH_PAT }} | |
- name: Run GoReleaser | |
uses: goreleaser/goreleaser-action@v3 | |
with: | |
args: release --clean --release-footer-tmpl=scripts/release/footer.md.tmpl --release-header-tmpl=scripts/release/head.md.tmpl | |
env: | |
USERNAME: ${{ github.repository_owner }} | |
GITHUB_TOKEN: ${{ secrets.GH_PAT }} | |
FURY_TOKEN: ${{ secrets.FURY_TOKEN }} |