-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (43 loc) · 1.32 KB
/
autorelease.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
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Auto Release
on:
workflow_dispatch:
inputs:
release_type:
description: "Select the type of release"
type: choice
options:
- patch
- minor
- major
jobs:
release:
name: Auto Release
runs-on: ubuntu-latest
steps:
# Checkout the repository
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
show-progress: true
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
# Configure Git
- name: Configure Git
run: |
git config --global user.name ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
git config --global user.email ${{ secrets.PYANSYS_CI_BOT_EMAIL }}
# Run the patch release script
- name: Run Patch Release Script
if: ${{ inputs.release_type == 'patch' }}
env:
GITHUB_TOKEN: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
run: |
./scripts/patch_release.sh
# Run the major/minor release script
- name: Run Major/Minor Release Script
if: ${{ inputs.release_type == 'major' || inputs.release_type == 'minor' }}
env:
GITHUB_TOKEN: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
run: |
./scripts/major_minor_release.sh ${{ inputs.release_type }}