Release pipeline #10
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: Release pipeline | |
permissions: | |
contents: write | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: Semantic version. For example 1.0.0 | |
required: true | |
jobs: | |
ci-pipeline: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout main branch | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.RELEASE_TOKEN }} | |
- name: Release | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "GitHub Action" | |
git tag -a v${{ github.event.inputs.version }} -m "next release" | |
git push --tags |