Skip to content

Commit 1feacd3

Browse files
authored
chore: release 0.0.1
Release-As: 0.0.1
1 parent 9683d1f commit 1feacd3

File tree

2 files changed

+17
-11
lines changed

2 files changed

+17
-11
lines changed

.github/workflows/pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
steps:
88
- name: Check PR Title for Conventional Commit Format
99
run: |
10-
if ! echo "${{ github.event.pull_request.title }}" | grep -Pq '^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\(\w+\))?!?:\s.*'; then
10+
if ! echo "${{ github.event.pull_request.title }}" | grep -Pq '^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test|Release-As)(\(\w+\))?!?:\s.*'; then
1111
echo 'The title does not conform to the Conventional Commit.'
1212
echo 'Please refer to "https://www.conventionalcommits.org/"'
1313
exit 1

.github/workflows/release.yml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,37 +6,43 @@ on:
66
permissions:
77
contents: read
88
jobs:
9-
release:
9+
release_and_publish:
1010
permissions:
1111
contents: write
1212
pull-requests: read
1313
runs-on: ubuntu-latest
1414
steps:
15+
- name: Release please
16+
id: release_please
17+
uses: googleapis/release-please-action@v4
18+
with:
19+
# The current PAT (personal access token) was created on 2024-08-05,
20+
# since the maximum validity of PAT is 1 year, you need to change the PAT before 2025-08-05.
21+
token: ${{ secrets.PAT }}
22+
release-type: simple
1523
- uses: actions/checkout@v4
24+
if: ${{ steps.release_please.outputs.release_created }}
1625
with:
1726
fetch-depth: 0
1827
- name: Set up Python
28+
if: ${{ steps.release_please.outputs.release_created }}
1929
uses: actions/setup-python@v5
2030
with:
2131
cache: pip
2232
python-version: '3.10'
2333
- name: Install dependencies
34+
if: ${{ steps.release_please.outputs.release_created }}
2435
run: |
2536
python -m pip install --upgrade pip
2637
pip install setuptools wheel twine # better-exceptions(optional for debug)
27-
- name: Release please
28-
id: release_please
29-
uses: googleapis/release-please-action@v4
30-
with:
31-
# The current PAT (personal access token) was created on 2024-08-05,
32-
# since the maximum validity of PAT is 1 year, you need to change the PAT before 2025-08-05.
33-
token: ${{ secrets.PAT }}
34-
release-type: simple
3538
- run: env | sort
39+
if: ${{ steps.release_please.outputs.release_created }}
3640
- run: make dev
41+
if: ${{ steps.release_please.outputs.release_created }}
3742
- run: make build
43+
if: ${{ steps.release_please.outputs.release_created }}
3844
- name: upload
39-
if: ${{ steps.release.outputs.release_created }}
45+
if: ${{ steps.release_please.outputs.release_created }}
4046
env:
4147
TWINE_USERNAME: __token__
4248
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)