diff --git a/.github/workflows/package.yaml b/.github/workflows/package.yaml new file mode 100644 index 0000000..2218f4c --- /dev/null +++ b/.github/workflows/package.yaml @@ -0,0 +1,26 @@ +name: Package + +on: + workflow_dispatch: + +jobs: + package: + name: Package and Deploy + runs-on: ubuntu-latest + steps: + - name: 🛒 Checkout + uses: actions/checkout@v2 + + - name: 🐍 Get Python + uses: actions/setup-python@v1 + + - name: 🛠️ Setup Build + run: python -m pip install build --user + + - name: 🛠️ Build Package + run: python -m build --sdist --wheel --outdir dist/ src/ + + - name: 📦 Publish to PyPI + uses: pypa/gh-action-pypi-publish@master + with: + password: ${{ secrets.PYPI_API_TOKEN }}