Skip to content

Commit

Permalink
Add actions
Browse files Browse the repository at this point in the history
  • Loading branch information
pvyParts committed Jun 27, 2024
1 parent 3ee914b commit f26972c
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Deploy to PyPi

on:
release:
types: [released, prereleased]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v4
with:
python-version: "3.11"

- name: install dependencies
run: make dev

- name: clean up
run: make clean

- name: Build Python
run: make package

- name: Upload Package
if: ${{ !env.ACT }} # Don't run in a local test environment
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: make deploy

0 comments on commit f26972c

Please sign in to comment.