Skip to content

Merge pull request #26 from GAIR-NLP/dev #2

Merge pull request #26 from GAIR-NLP/dev

Merge pull request #26 from GAIR-NLP/dev #2

name: Publish Python 🐍 distributions πŸ“¦ to PyPI
on:
push:
branches: [main]
paths: ["version.py"]
jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions πŸ“¦ to PyPI
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: 3.9
- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- run: pip install .
- run: pip install wheel
- name: Build a binary wheel and a source tarball
run: >-
python setup.py sdist bdist_wheel --universal
- name: Publish distribution πŸ“¦ to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN_FACTOOL }}
skip_existing: false