From 4d9dc2289f1a7696e0294adc96fbade19c4833da Mon Sep 17 00:00:00 2001 From: Bryan Rumsey Date: Mon, 13 Jun 2022 13:10:02 -0400 Subject: [PATCH] Added github action to auto push releases to pypi. --- .github/workflows/pypi_publish.yaml | 30 +++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/pypi_publish.yaml diff --git a/.github/workflows/pypi_publish.yaml b/.github/workflows/pypi_publish.yaml new file mode 100644 index 00000000..1946e301 --- /dev/null +++ b/.github/workflows/pypi_publish.yaml @@ -0,0 +1,30 @@ +name: Publish SpatialPy + +on: + release: + types: [published] + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.7' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install build + + - name: Build package + run: python -m build + + - name: Publish package + uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }} \ No newline at end of file