-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (31 loc) · 1013 Bytes
/
publish-to-pypi.yaml
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
# https://github.com/marketplace/actions/pypi-publish
name: Publish to PyPI
on:
push:
tags: # Only publish on tagged commits
- "*"
jobs:
build-and-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/project/qcparse/
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- name: Check out source repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Install dependencies
run: poetry install --no-interaction --no-ansi
- name: Build distribution 📦
run: poetry build
- name: Publish package 📤 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1