diff --git a/.github/workflows/pypi_upload.yaml b/.github/workflows/pypi_upload.yaml new file mode 100644 index 0000000..8ea7582 --- /dev/null +++ b/.github/workflows/pypi_upload.yaml @@ -0,0 +1,25 @@ +name: PYPI Upload + +on: + - workflow_dispatch + +jobs: + pypi_upload: + name: pypi-upload + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Setup Python + uses: actions/setup-python@v1 + with: + python-version: 3.9 + - name: Build Package + run: | + pip install wheel + python setup.py sdist bdist_wheel + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@master + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/.github/workflows/build.yaml b/.github/workflows/tests.yaml similarity index 96% rename from .github/workflows/build.yaml rename to .github/workflows/tests.yaml index 7083542..431d05d 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/tests.yaml @@ -1,4 +1,4 @@ -name: build +name: tests on: - push @@ -6,7 +6,7 @@ on: jobs: test: - name: build + name: tests runs-on: ubuntu-latest strategy: matrix: