Skip to content

Merge pull request #27 from wael-sudo2/feature/update_facebook_scraper #22

Merge pull request #27 from wael-sudo2/feature/update_facebook_scraper

Merge pull request #27 from wael-sudo2/feature/update_facebook_scraper #22

name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI
on:
push:
branches:
- main # Change 'main' to your branch name if necessary
jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install pypa/build
run: python -m pip install build
- name: Build a binary wheel and a source tarball
run: python -m build --sdist --wheel --outdir dist/
- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}