Skip to content

fix: use cycjimmy/semantic-release-action action for tagging semantic… #10

fix: use cycjimmy/semantic-release-action action for tagging semantic…

fix: use cycjimmy/semantic-release-action action for tagging semantic… #10

Workflow file for this run

name: Release
on:
push:
branches:
- main
- beta
jobs:
release:
runs-on: ubuntu-22.04
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
outputs:
version: ${{ steps.semantic.outputs.release-version }}
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.21
- name: Set up cache
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Tag Semantic Release Version
id: semantic
uses: cycjimmy/semantic-release-action@v4
with:
branches: |
[
'main'
]
extra_plugins: |
@semantic-release/commit-analyzer
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Go List
if: steps.semantic.outputs.new-release-published == 'true'
run: GOPROXY=proxy.golang.org go list -m github.com/pokt-foundation/dwh-client@v${{ steps.semantic.outputs.release-version }}