Skip to content

Commit efab90c

Browse files
authored
Merge pull request #2 from ScrapingBee/github-workflows
Adding GitHub workflows
2 parents 84ac35a + 1b487a9 commit efab90c

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Publish to PyPI on GitHub release (Trusted Publisher / OIDC).
2+
3+
name: Publish to PyPI
4+
5+
on:
6+
release:
7+
types: [published]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
publish:
14+
name: Upload release to PyPI
15+
runs-on: ubuntu-latest
16+
# environment: pypi
17+
permissions:
18+
id-token: write # Required for Trusted Publishing (OIDC)
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- uses: actions/setup-python@v5
23+
with:
24+
python-version: "3.10"
25+
cache: "pip"
26+
27+
- name: Install build dependencies
28+
run: python -m pip install -U build
29+
30+
- name: Build package
31+
run: python -m build
32+
33+
- name: Publish package to PyPI
34+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)