Skip to content

Commit

Permalink
Add a pre-release workflow (#494)
Browse files Browse the repository at this point in the history
Signed-off-by: Sambhav Kothari <[email protected]>
  • Loading branch information
sambhav authored Mar 20, 2023
1 parent bc95757 commit 135ac6f
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: Test PyPI publish

on:
release:
types: [prereleased]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install base dependencies
run: |
python -m pip install --upgrade pip
python -m pip install poetry
- name: Bump version number
run: poetry version ${{ github.event.release.tag_name }}
- name: Build and publish
run: |
poetry build
poetry config repositories.testpypi https://test.pypi.org/legacy/
poetry publish -r testpypi -u __token__ -p ${{ secrets.PYPI_TEST_API_TOKEN }}

0 comments on commit 135ac6f

Please sign in to comment.