Skip to content

Commit 6799e63

Browse files
committed
chore: attempt to produce manual GitHub action to release a RC version
Signed-off-by: Paul Horton <[email protected]>
1 parent 89d8382 commit 6799e63

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Manual Release Candidate
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
branch:
7+
description: 'Branch to produce Release Candidate from'
8+
required: true
9+
type: string
10+
rc_number:
11+
description: 'RC Number'
12+
default: 0
13+
required: true
14+
type: number
15+
16+
jobs:
17+
release:
18+
runs-on: ubuntu-latest
19+
concurrency: release
20+
steps:
21+
- name: Checkout code
22+
uses: actions/checkout@v2
23+
with:
24+
fetch-depth: 0
25+
- uses: actions/setup-python@v2
26+
with:
27+
python-version: 3.9
28+
- name: Install dependencies
29+
run: |
30+
python -m pip install poetry --upgrade pip
31+
poetry config virtualenvs.create false
32+
poetry install
33+
python -m pip install python-semantic-release
34+
- name: Determine RC candidate version
35+
run: |
36+
RC_VERSION="$(python-semantic-release --noop --major print-version)rc${{ inputs.rc_number }})"
37+
echo "RC Version will be: ${RC_VERSION}"
38+
# - name: Python Semantic Release
39+
# uses: relekang/python-semantic-release@master
40+
# with:
41+
# github_token: ${{ secrets.GITHUB_TOKEN }}
42+
# pypi_token: ${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)