fix: post merge release tagging #41
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create release tags | |
permissions: | |
contents: write | |
on: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
tag-release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.SUPERPOSITION_TOKEN }} | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: 1.76.0 | |
targets: wasm32-unknown-unknown | |
components: rustfmt, clippy | |
- name: install cargo-edit to perform set-version | |
uses: baptiste0928/cargo-install@v2.2.0 | |
with: | |
crate: cargo-edit | |
- name: install cocogitto | |
uses: baptiste0928/cargo-install@v2.2.0 | |
with: | |
crate: cocogitto | |
- name: Semver release | |
shell: bash | |
run: | | |
git config user.email "super_bot@juspay.in" | |
git config user.name "Superposition Bot" | |
cog bump --auto --skip-ci-override "[skip ci]" | |
- name: Push code to main | |
shell: bash | |
run: | | |
git push --follow-tags |