Merge pull request #349 from authzed/dependabot/go_modules/github.com… #67
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" | |
on: | |
push: | |
tags: | |
- "v[0-9]+.[0-9]+.[0-9]+" | |
jobs: | |
github: | |
runs-on: "macos-latest" | |
steps: | |
- uses: "actions/checkout@v3" | |
with: | |
fetch-depth: 0 | |
- name: "Install cross-compilers" | |
run: | | |
brew tap messense/macos-cross-toolchains | |
brew install x86_64-unknown-linux-gnu x86_64-unknown-linux-musl aarch64-unknown-linux-gnu aarch64-unknown-linux-musl mingw-w64 | |
echo "SDKROOT=$(xcrun --sdk macosx --show-sdk-path)" >> $GITHUB_ENV | |
- uses: "authzed/actions/setup-go@main" | |
- uses: "goreleaser/goreleaser-action@v3" | |
with: | |
distribution: "goreleaser-pro" | |
version: "latest" | |
args: "release --rm-dist" | |
env: | |
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
HOMEBREW_TAP_GITHUB_TOKEN: "${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}" | |
GORELEASER_KEY: "${{ secrets.GORELEASER_KEY }}" | |
GEMFURY_PUSH_TOKEN: "${{ secrets.GEMFURY_PUSH_TOKEN }}" | |
docker: | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: "actions/checkout@v3" | |
with: | |
fetch-depth: 0 | |
- uses: "authzed/actions/docker-login@main" | |
with: | |
quayio_token: "${{ secrets.QUAYIO_PASSWORD }}" | |
github_token: "${{ secrets.GITHUB_TOKEN }}" | |
dockerhub_token: "${{ secrets.DOCKERHUB_ACCESS_TOKEN }}" | |
- name: "Install linux cross-compilers" | |
run: "sudo apt-get update && sudo apt-get install -y gcc-aarch64-linux-gnu gcc-mingw-w64-x86-64" | |
- uses: "authzed/actions/setup-go@main" | |
- uses: "goreleaser/goreleaser-action@v3" | |
with: | |
distribution: "goreleaser-pro" | |
version: "latest" | |
args: "release --config=.goreleaser.docker.yml --rm-dist" | |
env: | |
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
GORELEASER_KEY: "${{ secrets.GORELEASER_KEY }}" |