Merge pull request #109 from algorandfoundation/chore/fix_resolver_im… #16
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 | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
# Publish project package(s) | |
publish: | |
name: publish package | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
if: startsWith(github.ref, 'refs/tags/') | |
steps: | |
# Checkout code | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
# This is required for the changelog to be properly generated | |
with: | |
fetch-depth: 0 | |
# Prepare runner environment | |
- name: Set up runner environment | |
run: ./.github/workflows/assets/utils.sh setup | |
env: | |
GITHUB_USER: ${{ github.actor }} | |
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} | |
# Go | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.21.x | |
# Use goreleaser to create the new release | |
# https://github.com/goreleaser/goreleaser-action | |
- name: Create release | |
uses: goreleaser/goreleaser-action@v5 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
version: latest | |
args: release --clean --skip=validate | |
env: | |
# https://docs.github.com/en/free-pro-team@latest/actions/reference/authentication-in-a-workflow | |
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} | |
# Login of the user that initiated the workflow run | |
GITHUB_USER: ${{ github.actor }} |