Skip to content

Merge pull request #6 from ermites-io/add_version_parsing #8

Merge pull request #6 from ermites-io/add_version_parsing

Merge pull request #6 from ermites-io/add_version_parsing #8

Workflow file for this run

name: release
on:
push:
tags:
- 'v*'
env:
APP_NAME: pkisauce
jobs:
build-packages:
runs-on: ubuntu-latest
env:
GO111MODULE: on
steps:
- name: Checkout Source
uses: actions/checkout@v2
- name: Unshallow
run: git fetch --prune --unshallow
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18.2
- name : Get release version
id: get_version
run: |
echo "RELEASE_VERSION={GITHUB_REF:10}" >> $GITHUB_ENV
- name: Docker Login
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Release Binaries
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}