Skip to content
This repository was archived by the owner on Aug 19, 2025. It is now read-only.

Commit ccd476e

Browse files
authored
Add publish GitHub workflow (#80)
1 parent 4d993ad commit ccd476e

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
tags:
6+
- "*"
7+
8+
jobs:
9+
publish:
10+
name: "Publish release"
11+
runs-on: "ubuntu-latest"
12+
13+
steps:
14+
- uses: "actions/checkout@v3"
15+
- uses: "actions/setup-python@v4"
16+
with:
17+
python-version: "3.10"
18+
19+
- name: "Install dependencies"
20+
run: "scripts/install"
21+
22+
- name: "Build package & docs"
23+
run: "scripts/build"
24+
25+
- name: "Publish to PyPI & deploy docs"
26+
run: "scripts/publish"
27+
env:
28+
TWINE_USERNAME: __token__
29+
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)