Skip to content

Commit

Permalink
CI: build and deploy package
Browse files Browse the repository at this point in the history
  • Loading branch information
swharden committed Jul 6, 2022
1 parent 13fe0ea commit 81d011d
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/package.yaml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 81d011d

Please sign in to comment.