Skip to content

Commit

Permalink
added release script
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Lloyd committed Mar 17, 2023
1 parent 1c20a60 commit bdfacc6
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[email protected]
33 changes: 33 additions & 0 deletions .github/workflows/releases.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish New Releases to Pypi

on:
release:
types: [published]
workflow_dispatch:

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.1.13
- name: Install dependencies
run: |
poetry env use python
poetry install --no-root
- name: Build package
run: poetry build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN_PROD }}

0 comments on commit bdfacc6

Please sign in to comment.