-
-
Notifications
You must be signed in to change notification settings - Fork 11
32 lines (25 loc) · 768 Bytes
/
publish.yml
File metadata and controls
32 lines (25 loc) · 768 Bytes
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
name: Publish a new release
on:
release:
# Only use the types keyword to narrow down the activity types that will trigger your workflow.
types:
- published
jobs:
publish-docs:
uses: ./.github/workflows/release-docs.yml
publish:
name: upload release to PyPI
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
with:
submodules: "true"
- name: Install Python
uses: ./.github/actions/setup-py
- name: Build project
run: nox -s build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@67339c736fd9354cd4f8cb0b744f2b82a74b5c70