forked from jchanvfx/NodeGraphQt
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (26 loc) · 893 Bytes
/
pypi_publish.yml
File metadata and controls
28 lines (26 loc) · 893 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
# Workflow for publishing module package to https://pypi.org.
name: Publish PyPI Package
on:
# trigger this workflow when a release is published.
release:
types:
- published
jobs:
publish:
name: Upload Release to PyPI
runs-on: ubuntu-latest
# IMPORTANT: this permission is mandatory for trusted publishing.
permissions:
id-token: write
steps:
# Checks-out your repository under $GITHUB_WORKSPACE , so your workflow can access it.
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
# Run build to a specified version of python into a specified directory.
- name: Python Build
run: python3 -m pip install --upgrade build && python3 -m build
# Publish the python package to pypi.org.
- name: Publish Package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1