Skip to content

release(sdk): v2.0.0-rc.10 #38

release(sdk): v2.0.0-rc.10

release(sdk): v2.0.0-rc.10 #38

name: Publish
"on":
push:
branches:
- release/v*.*.*
- release/v*.*.*-alpha.*
- release/v*.*.*-beta.*
- release/v*.*.*-rc.*version
jobs:
Release:
name: 'Release'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/release/}}" >> $GITHUB_OUTPUT
id: extract_branch
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ steps.extract_branch.outputs.branch }}
release_name: ${{ steps.extract_branch.outputs.branch }}
draft: false
prerelease: false
- run: gh repo edit --default-branch=release/${{ steps.extract_branch.outputs.branch }}
env:
GITHUB_TOKEN: ${{ secrets.NUMARY_GITHUB_TOKEN }}