From 81d011d8df9c614b08d19521f53c21adabef6f4f Mon Sep 17 00:00:00 2001 From: Scott W Harden Date: Wed, 6 Jul 2022 08:22:01 -0400 Subject: [PATCH] CI: build and deploy package --- .github/workflows/package.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/package.yaml 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 }}