Skip to content

docs: Prepare for v0.1.20 release (#135) #24

docs: Prepare for v0.1.20 release (#135)

docs: Prepare for v0.1.20 release (#135) #24

Workflow file for this run

name: release
on:
push:
tags:
- v*
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Check direct push
run: |
VERSION_FILE_PATH="internal/index/version.txt"
if ! grep -q "${TAG/v/}" "$VERSION_FILE_PATH"; then
echo "error: scip-go version in $VERSION_FILE_PATH doesn't match NEW_VERSION=$NEW_VERSION"
exit 1
fi
env:
TAG: ${{ github.ref_name }}
- name: Install ASDF
uses: asdf-vm/actions/setup@v3
- name: Install matching Go toolchain
run: |
asdf plugin add golang
asdf install golang
- uses: azure/docker-login@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
version: v2.0.1
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}