Skip to content

Commit 10c6abf

Browse files
committed
🎡 ci(pypa): add github action to automatically publish on pypa
1 parent 73636e7 commit 10c6abf

File tree

3 files changed

+25
-28
lines changed

3 files changed

+25
-28
lines changed

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- run: pip install -e .
3030
# ADJUST THIS: build your documentation into docs/.
3131
# We use a custom build script for pdoc itself, ideally you just run `pdoc -o docs/ ...` here.
32-
- run: pdoc -o docs/ src/ptame --logo "https://github.com/IDT-ITI/P-TAME/blob/main/ptame_logo.png"
32+
- run: pdoc -o docs/ src/ptame --logo "https://github.com/IDT-ITI/P-TAME/blob/main/ptame_logo.png?raw=true"
3333

3434
- uses: actions/upload-pages-artifact@v3
3535
with:

.github/workflows/pypa-publish.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Publish to PyPI
2+
on:
3+
push:
4+
tags:
5+
- "*.*.*"
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Set up Python
15+
uses: actions/setup-python@v5
16+
with:
17+
python-version: "3.10"
18+
- name: Install dependencies
19+
run: |
20+
python -m pip install --upgrade pip
21+
python -m pip install .[build]
22+
23+
- name: Publish package distributions to PyPI
24+
uses: pypa/gh-action-pypi-publish@release/v1

.github/workflows/release-drafter.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)