Skip to content

Chore: introduce new action and file for release candidates #33

Chore: introduce new action and file for release candidates

Chore: introduce new action and file for release candidates #33

Workflow file for this run

name: release
on:
push:
tags:
- v*
jobs:
check-tag:
runs-on: ubuntu-latest
if: contains(github.ref, '-rc')
steps:
- name: Check for RC in tag
run: |
echo "RC tag detected: ${GITHUB_REF##*/}"
echo "Cancelling the workflow"
exit 1
release:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v2
with:
submodules: "true"
- run: git fetch --prune --unshallow
- name: setup dependencies
uses: actions/setup-go@v2
- name: release dry run
run: |
make release-dry-run
- name: setup release environment
run: |
echo "HOMEBREW_APP_NAME=${HOMEBREW_APP_NAME}" > .release-env
echo "GITHUB_TOKEN=${{ secrets.PUBLISHER_TOKEN }}" >> .release-env
env:
HOMEBREW_APP_NAME: ${{ env.HOMEBREW_APP_NAME }}
- name: release publish
run: |
make release