Skip to content

Release

Release #6

Workflow file for this run

name: Release
on:
workflow_dispatch:
inputs:
type:
description: 'New version type [new-version | major | minor | patch]'
required: true
default: 'patch'
jobs:
bumpVersion:
runs-on: ubuntu-22.04
steps:
- run: |
echo "New version type: ${{ github.event.inputs.type }}"
- name: Setup checkout
uses: actions/checkout@v3
with:
# Use a PAT to ensure that
# commits are authored with a specific user
# workflow run are triggered after git push
token: ${{ secrets.GH_RELEASE_TOKEN }}
- name: Build Setup
uses: ./.github/actions/build-setup
- name: Config git
run: |
git config --local user.email "${{ vars.PA_BOT_EMAIL }}"
git config --local user.name "${{ vars.PA_BOT_NAME }}"
git config pull.rebase true
- name: Checkout default branch
run: git checkout main && git pull --tags
- name: Bump Version
run: |
./bin/version.bash addons ${{ github.event.inputs.type }}
- name: Push Version
run: git push && git push --tags