Skip to content

goreleaser: replacements is deprecated (#134) #7

goreleaser: replacements is deprecated (#134)

goreleaser: replacements is deprecated (#134) #7

Workflow file for this run

name: Github Actions for Releases
on:
push:
tags:
- "*"
jobs:
release:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
strategy:
matrix:
version: ['1.18']
env:
GORELEASER_CURRENT_TAG: ${{ github.ref_name }}
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Golang
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.version }}
check-latest: true
cache: true
- name: Build and package with GoReleaser
uses: goreleaser/goreleaser-action@v3
with:
distribution: goreleaser
version: latest
args: --skip-publish
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
dist/checksums.txt
dist/*.tar.gz