Skip to content

Commit

Permalink
Add auto pypi publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
henrypinkard authored Aug 27, 2024
1 parent fa9884f commit a0624e3
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/publish_pypi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build and Publish to PyPI using Flit

on:
push:
paths:
- 'src/exengine/_version.py'

jobs:
build-and-publish:
runs-on: ubuntu-latest
permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flit
- name: Install package dependencies
run: |
pip install -e .
- name: Set PYTHONPATH
run: echo "PYTHONPATH=$PYTHONPATH:${{ github.workspace }}/src" >> $GITHUB_ENV
- name: Build package
run: flit build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit a0624e3

Please sign in to comment.