Skip to content

Create CLI release

Create CLI release #1

name: Create CLI release
on:
workflow_dispatch:
jobs:
create-cli-release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Determine release version
run: export VERDEX_RELEASE_VERSION=$(awk '/cliVersion/{print $4}' verdex/core/config.go | sed -e 's/"//g')
- name: Create tag
uses: actions/github-script@v5
with:
script: |
github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: 'refs/tags/v' + process.env.VERDEX_RELEASE_VERSION,
sha: context.sha
})