Skip to content

Commit

Permalink
Publish to PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
felixbrucker committed Mar 26, 2024
1 parent a0bc34d commit d81ab20
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,3 +145,29 @@ jobs:
artifacts: "foxy-farmer-*.zip"
name: "Foxy-Farmer v${{ steps.tag.outputs.TAG }}"
body: ${{ steps.changelog_reader.outputs.changes }}
publish-to-pypi:
name: Publish to PyPI
needs: build
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/foxy-farmer
permissions:
id-token: write
steps:
- name: Checkout the repo
uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install . --extra-index-url https://pypi.chia.net/simple/
pip install --upgrade build
- name: Build distribution
run: python -m build
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
[tool.black]
line-length = 120

[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"

0 comments on commit d81ab20

Please sign in to comment.