Skip to content

Commit f621605

Browse files
committed
v1.0.4
1 parent 1c20a55 commit f621605

File tree

2 files changed

+14
-19
lines changed

2 files changed

+14
-19
lines changed

.github/workflows/workflow.yml

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,25 @@
1-
name: Publish Python Package
1+
name: Publish to PyPI
22

33
on:
44
push:
55
tags:
6-
- 'v*' # only run when a tag like v1.0.0 is pushed
6+
- 'v*'
77

88
jobs:
9-
build-n-publish:
9+
publish:
1010
runs-on: ubuntu-latest
11-
11+
permissions:
12+
id-token: write
13+
contents: read
14+
environment:
15+
name: pypi
1216
steps:
13-
- name: Check out code
14-
uses: actions/checkout@v4
15-
16-
- name: Set up Python
17-
uses: actions/setup-python@v5
17+
- uses: actions/checkout@v4
18+
- uses: actions/setup-python@v5
1819
with:
1920
python-version: '3.12'
20-
21-
- name: Install build dependencies
22-
run: |
23-
python -m pip install --upgrade pip
24-
pip install build twine
25-
26-
- name: Build package
27-
run: python -m build
28-
29-
- name: Publish to PyPI
21+
- run: |
22+
pip install build
23+
python -m build
24+
- name: Publish package to PyPI
3025
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)