Skip to content

Merge pull request #2 from juicedata/release/0.1.0 #1

Merge pull request #2 from juicedata/release/0.1.0

Merge pull request #2 from juicedata/release/0.1.0 #1

Workflow file for this run

name: release
on:
push:
tags:
- v*
jobs:
releaser:
runs-on: ubuntu-20.04
steps:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 'oldstable'
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: setup release environment
run: |-
REVISIONDATE=$(git log -1 --pretty=format:'%cd' --date short 2>/dev/null)
echo "REVISIONDATE=${REVISIONDATE}" >> $GITHUB_ENV
- name: goreleaser release
run: make release
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
# 'latest', 'nightly', or a semver
version: '~> v2'
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}