Skip to content

Commit

Permalink
clean and add publish pypi with manual release
Browse files Browse the repository at this point in the history
  • Loading branch information
Claudio9701 committed Aug 11, 2023
1 parent f30e569 commit 9bbc24a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@ jobs:
docs-folder: "docs/"

build:
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -55,7 +54,9 @@ jobs:
release:
needs: [docs, build]
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
if: |
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags')) ||
(github.event_name == 'release' && contains(github.event.action, 'published'))
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down

0 comments on commit 9bbc24a

Please sign in to comment.