-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (35 loc) · 1.12 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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