JobSpy/.github/workflows/publish-to-pypi.yml

34 lines
739 B
YAML
Raw Normal View History

2025-02-21 12:14:55 -08:00
name: Publish JobSpy to PyPi
on: push
2024-12-04 14:52:15 -08:00
2023-09-03 07:29:25 -07:00
jobs:
build-n-publish:
2025-02-21 12:14:55 -08:00
name: Build and publish JobSpy to PyPi
2023-09-03 07:29:25 -07:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
2023-09-03 07:29:25 -07:00
- name: Install poetry
2025-02-21 12:14:55 -08:00
run: >-
python3 -m
pip install
poetry
--user
2023-09-03 07:29:25 -07:00
- name: Build distribution 📦
2025-02-21 12:14:55 -08:00
run: >-
python3 -m
poetry
build
2023-09-03 07:29:25 -07:00
- name: Publish distribution 📦 to PyPI
2025-02-21 12:14:55 -08:00
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
2024-12-04 14:29:38 -08:00
password: ${{ secrets.PYPI_API_TOKEN }}