Browse Source

Add deploy action

test_fixup
Clifton Barnes 2 years ago
parent
commit
b08587f8fb
No known key found for this signature in database GPG Key ID: 4D011A1BC4B239D7
1 changed files with 28 additions and 0 deletions
  1. +28
    -0
      .github/workflows/deploy.yml

+ 28
- 0
.github/workflows/deploy.yml View File

@@ -0,0 +1,28 @@
name: Deploy
on:
push:
tags:
- '*'

jobs:
deploy:
name: Deploy to PyPI
if: startsWith(github.ref, 'refs/tags')
runs-on: ubuntu-latest
steps:
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.8'

- name: Check out code
uses: actions/checkout@v3

- name: Build the library
env:
PYVER: ${{ matrix.version }}
run: python3 setup.py sdist

- uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}

Loading…
Cancel
Save