Skip to content

Commit

Permalink
GitHub Release Action (#346)
Browse files Browse the repository at this point in the history
* Add publish action

* Fix

* Fix
  • Loading branch information
HHousen authored Aug 7, 2023
1 parent 67fdf0f commit 4757473
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: release

on:
push:
tags:
- "v*.*.*"

jobs:
build:
strategy:
fail-fast: false

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Python 3.11
uses: actions/setup-python@v2
with:
python-version: 3.11

- name: Install poetry 1.4.2
run: |
python -m ensurepip
python -m pip install --upgrade pip
python -m pip install poetry==1.4.2
- name: Install dependencies
shell: bash
run: python -m poetry install -E all

- name: Set poetry PyPI token
run: python -m poetry config pypi-token.pypi "${{ secrets.PYPI_API_KEY }}"

- name: Publish to PyPI
run: |
python -m poetry publish --build --no-interaction

0 comments on commit 4757473

Please sign in to comment.