Skip to content

Commit e399253

Browse files
committed
ci: move publish workflow into release-please
1 parent 08c1c76 commit e399253

File tree

5 files changed

+24
-17
lines changed

5 files changed

+24
-17
lines changed

.github/workflows/gh-pages.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
branches:
55
- "main"
66

7+
name: "gh-pages"
8+
79
jobs:
810
build:
911
runs-on: "ubuntu-latest"

.github/workflows/lint.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
name: Lint
21
on:
32
push:
43
paths:
54
- "**.py"
5+
6+
name: lint
7+
68
jobs:
79
lint:
810
strategy:

.github/workflows/publish.yaml

Lines changed: 0 additions & 15 deletions
This file was deleted.

.github/workflows/release-please.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,23 @@ name: release-please
1212
jobs:
1313
release-please:
1414
runs-on: ubuntu-latest
15+
outputs:
16+
release_created: ${{ steps.release.outputs.release_created }}
1517
steps:
1618
- uses: googleapis/release-please-action@v4
19+
id: release
1720
with:
1821
release-type: python
22+
23+
publish:
24+
runs-on: ubuntu-latest
25+
needs: release-please
26+
if: ${{ needs.release-please.outputs.release_created }}
27+
steps:
28+
- uses: actions/checkout@v4
29+
- uses: actions/setup-python@v5
30+
with:
31+
python-version: "3.12"
32+
- uses: abatilo/actions-poetry@v3
33+
- run: poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }}
34+
- run: poetry publish --build

.github/workflows/test.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
name: Test
21
on:
32
push:
43
paths:
54
- '**.py'
5+
6+
name: test
7+
68
jobs:
79
test:
810
strategy:

0 commit comments

Comments
 (0)