Skip to content

update

update #9

Workflow file for this run

name: Release
on:
push:
tags:
- "v[0-9]+\\.[0-9]+\\.[0-9]+"
- "v[0-9]+\\.[0-9]+\\.[0-9]+-rc[0-9]+"
jobs:
release:
runs-on: ubuntu-latest
environment: release
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- run: git fetch --force --tags
- name: Release
run: |
docker run --privileged --rm --env GITHUB_TOKEN=$GITHUB_TOKEN \
-v /var/run/docker.sock:/var/run/docker.sock \
-v `pwd`:/go/src/$(grep module go.mod | awk '{print $2}') \
-w /go/src/$(grep module go.mod | awk '{print $2}') \
ghcr.io/goreleaser/goreleaser-cross:v1.21 release --clean --skip=publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}