8000 Add release CI with trusted publishers · codesalatdev/python-picnic-api@7d163ef · GitHub
[go: up one dir, main page]

Skip to content

Commit 7d163ef

Browse files
authored
Add release CI with trusted publishers
1 parent 7f8e713 commit 7d163ef

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/release.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Release to PyPi
2+
on: [workflow_dispatch]
3+
jobs:
4+
publish:
5+
runs-on: ubuntu-latest
6+
permissions:
7+
id-token: write
8+
steps:
9+
- uses: actions/checkout@v2
10+
11+
- name: Set up Python 3.11
12+
uses: actions/setup-python@v2
13+
with:
14+
python-version: 3.11
15+
16+
- name: Install poetry 2.1.1
17+
run: |
18+
python -m ensurepip
19+
python -m pip install --upgrade pip
20+
python -m pip install poetry==2.1.1
21+
22+
- name: Install dependencies
23+
shell: bash
24+
run: python -m poetry install
25+
26+
- name: Build package
27+
shell: bash
28+
run: python -m poetry build
29+
- name: pypi-publish
30+
uses: pypa/gh-action-pypi-publish@v1.12.4

0 commit comments

Comments
 (0)
0