Skip to content

Add version support. #26

Add version support.

Add version support. #26

Workflow file for this run

name: Release
permissions:
contents: write
on:
push:
tags: 'v*'
jobs:
release:
name: Upload releases
runs-on: ubuntu-latest
if: "!contains(github.ref, '-')" # skip prereleases
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Docker push on master
# run: |
# # Build & publish on master
# echo "${{ secrets.GH_TOKEN }}" | docker login ghcr.io -u USERNAME --password-stdin
# TAG=${GITHUB_REF_NAME} make docker_push
# TAG=latest make docker_push