-
Notifications
You must be signed in to change notification settings - Fork 27
42 lines (37 loc) · 1.05 KB
/
release-please.yml
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
name: "RELEASE: Changelog Update, Tagging, and PyPI Upload"
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
release-please:
runs-on: ubuntu-latest
environment: ReleasePlease
outputs:
release-created: ${{ steps.release.outputs.release_created }}
steps:
- uses: google-github-actions/release-please-action@v4
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
config-file: release-please-config.json
manifest-file: .release-please-manifest.json
publish-to-pypi:
name: Upload to PyPI
needs: release-please
environment: ReleasePlease
runs-on: ubuntu-latest
if: needs.release-please.outputs.release-created
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- uses: abatilo/actions-poetry@v3
- name: build
run: poetry build
- name: publish
run: poetry publish --username __token__ --password ${{ secrets.PYPI_TOKEN }}