-
Notifications
You must be signed in to change notification settings - Fork 3
47 lines (45 loc) · 2.03 KB
/
Copy pathrelease.yml
File metadata and controls
47 lines (45 loc) · 2.03 KB
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
name: Create a new patch release
on: [workflow_dispatch]
jobs:
resources:
name: Update __init__.py patch version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- name: Update version
run: |
pwd
$PWD/.github/workflows/scripts/update_init_version.py --file-path $PWD/massdash/__init__.py
$PWD/.github/workflows/scripts/update_pyproject.py --file-path pyproject.toml --init_file_path massdash/__init__.py
$PWD/.github/workflows/scripts/version_update_script.py --file-path $PWD/README.md --init_file_path $PWD/massdash/__init__.py
$PWD/.github/workflows/scripts/version_update_script.py --file-path $PWD/docs/Installation.rst --init_file_path $PWD/massdash/__init__.py
- name: Commit __init__ version update
uses: test-room-7/action-update-file@v1
with:
file-path: massdash/__init__.py
commit-msg: Bump patch version in __init__.py
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Commit version update for pyproject.toml
uses: test-room-7/action-update-file@v1
with:
file-path: pyproject.toml
commit-msg: Bump patch version in pyproject.toml
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Commit version update for README.md
uses: test-room-7/action-update-file@v1
with:
file-path: README.md
commit-msg: Bump patch version in README.md
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Commit version update for Installation.rst
uses: test-room-7/action-update-file@v1
with:
file-path: docs/Installation.rst
commit-msg: Bump patch version in Installation.rst
github-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v3
- name: Create new patch release
run: $PWD/.github/workflows/scripts/release.py
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}