Skip to content

Commit edda5df

Browse files
Create pypi-publish.yml
1 parent 703a2df commit edda5df

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/pypi-publish.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# This workflows will upload a Python Package using poetry when a release is created
2+
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3+
4+
name: Publish RSMetaCheck package to PyPI
5+
6+
on:
7+
workflow_dispatch:
8+
release:
9+
types: [created]
10+
11+
jobs:
12+
deploy:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v2
18+
- name: Set up Python
19+
uses: actions/setup-python@v2
20+
with:
21+
python-version: "3.11"
22+
- name: Install Poetry
23+
run: curl -sSL https://install.python-poetry.org | python3 -
24+
- name: Update version
25+
run: python update_version.py
26+
- name: Install dependencies
27+
run: poetry install
28+
- name: Configure Poetry for PyPI
29+
run: |
30+
poetry config pypi-token.pypi ${{ secrets.PYPI_PASSWORD }}
31+
32+
- name: Build and publish
33+
run: |
34+
poetry build
35+
poetry publish

0 commit comments

Comments
 (0)