Skip to content

Commit

Permalink
github: add build-and-test workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Rouven Czerwinski <[email protected]>
  • Loading branch information
Emantor committed Dec 2, 2022
1 parent b6fee44 commit 1e67d26
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: build and publish
on: push

jobs:
release:
runs-on: ubuntu-22.04
continue-on-error: false
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
- name: Install python dependencies
run: |
python -m pip install --upgrade pip build
- name: Build Wheel and sdist
run: |
python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/

0 comments on commit 1e67d26

Please sign in to comment.