v0.6.0 #10
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: Publish Release Assets | |
on: | |
workflow_dispatch: null | |
release: | |
types: [published] | |
permissions: | |
contents: write | |
id-token: write | |
packages: write | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
env: | |
DOCKER_CLI_EXPERIMENTAL: "enabled" | |
DOCKER_BUILDKIT: 1 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
# https://github.com/actions/setup-go | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.22.1 | |
id: go | |
- name: Install GoReleaser | |
uses: goreleaser/goreleaser-action@v4 | |
with: | |
install-only: true | |
- name: Show GoReleaser version | |
run: goreleaser --version | |
- name: Login to DockerHub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_PASSWORD }} | |
- name: Login to GitHub Docker Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- uses: tibdex/[email protected] | |
id: generate_homebrew_token | |
with: | |
app_id: ${{ secrets.UPDATECLIBOT_APP_ID }} | |
private_key: ${{ secrets.UPDATECLIBOT_APP_PRIVKEY }} | |
- name: GoReleaser | |
if: success() | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
HOMEBREW_TAP_GITHUB_TOKEN: ${{ steps.generate_homebrew_token.outputs.token }} | |
run: | | |
make release | |
- name: Clean up | |
run: | | |
rm -f ${HOME}/.docker/config.json |