-
Notifications
You must be signed in to change notification settings - Fork 4
40 lines (31 loc) · 852 Bytes
/
release.yml
File metadata and controls
40 lines (31 loc) · 852 Bytes
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
name: Release
on:
workflow_dispatch:
inputs:
release_type:
required: true
type: choice
options:
- patch
- minor
- major
permissions:
contents: write
jobs:
run:
runs-on: ubuntu-latest
if: contains('["nxpkg"]', github.actor)
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set Up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: setup git config
run: |
# setup the username and email. I tend to use 'GitHub Actions Bot' with no email by default
git config user.name "GitHub Actions Bot"
git config user.email "<>"
- name: Run Version Bump Script
run: python bump.py ${{ github.event.inputs.release_type }}