Skip to content
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.

Commit

Permalink
wip: fixing releases
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkappa committed Dec 10, 2019
1 parent 150c6f0 commit 97f0827
Showing 1 changed file with 21 additions and 12 deletions.
33 changes: 21 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,26 @@ jobs:
name: Release
runs-on: ubuntu-latest
steps:

- name: Check out source
uses: actions/checkout@v1

- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.12
id: go

- name: Get version from ref
run: echo ::set-output name=TAG::$(echo $GITHUB_REF | cut -d / -f 3)
id: get_version

- name: Go release
run: ./scripts/release.sh ${{ steps.get_version.outputs.VERSION }}
run: echo ::set-env name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)

- name: Create release notes
run: scripts/release-notes.sh ${{ env.VERSION }} > release-notes.md

# - name: Go release
# uses: goreleaser/goreleaser-action@v1
# with:
# version: ${{ steps.get_version.outputs.VERSION }}
# args: --skip-validate --release-notes="${TMPDIR}/release-notes.md"
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Go release
uses: goreleaser/goreleaser-action@v1
with:
version: latest
args: --skip-validate --release-notes release-notes.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 97f0827

Please sign in to comment.