Skip to content

Commit

Permalink
Bundled workflow files in main.yml (with conditional releases).
Browse files Browse the repository at this point in the history
  • Loading branch information
jaspersiebring committed Aug 9, 2023
1 parent c1792b3 commit 54d1164
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 129 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
name: Quality control (pytest, mpy, pylint and cov)
name: Quality control and automated release
on:
pull_request: # Pull request events (default: open, synchronized, reopened) in any branch triggers the workflow.
push:
branches:
- main # Pushes to main (i.e. after a merged PR)
jobs:
Quality-Control:
checks_and_release:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
Expand Down Expand Up @@ -69,9 +72,8 @@ jobs:
run: |
poetry config repositories.test-pypi https://test.pypi.org/legacy/
poetry config pypi-token.test-pypi ${{ secrets.TESTPYPI_API_TOKEN }}
if: steps.build.outcome == 'success'
if: steps.build.outcome == 'success' && github.event_name == 'push'
- name: Publish on PYPI
#run: poetry publish
run: poetry publish -r test-pypi
if: steps.build.outcome == 'success'

if: steps.build.outcome == 'success' && github.event_name == 'push'
58 changes: 0 additions & 58 deletions .github/workflows/manual_build.yaml

This file was deleted.

66 changes: 0 additions & 66 deletions .github/workflows/poetry_release.yaml

This file was deleted.

0 comments on commit 54d1164

Please sign in to comment.