Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
endomorphosis committed Jul 24, 2024
1 parent f1e444b commit 810247b
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/publish_to_pipy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,24 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: "3.x"

- name: Install dependencies
run: python -m pip install --upgrade pip setuptools wheel
- name: Build the package
run: python setup.py sdist bdist_wheel
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: python-package-distributions
path: dist/

publish-to-pypi:
name: Publish Python 🐍 distribution 📦 to PyPI
if: github.ref == 'refs/heads/main' # only publish to PyPI on pushes to main branch
needs: build
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/ipfs-datasets # Replace <package-name> with your PyPI project name
url: https://pypi.org/p/ipfs_transformers # Replace <package-name> with your PyPI project name
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
steps:
Expand Down

0 comments on commit 810247b

Please sign in to comment.