Skip to content

Commit

Permalink
make build latest release action run only when a release action is co…
Browse files Browse the repository at this point in the history
…mpleted
  • Loading branch information
gcroci2 committed Jan 25, 2024
1 parent 967e436 commit 974cb60
Showing 1 changed file with 5 additions and 26 deletions.
31 changes: 5 additions & 26 deletions .github/workflows/build-latest-release.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,14 @@
name: build (latest release)

# Only trigger, when the release workflow succeeded
on:
push:
paths-ignore:
# specific folder locations
- ".vscode/**"
- "docs/**"
# filetypes
- "**.md"
- "**.rst"
- "**.ipynb"
- "**.cff"
- "**.png"
branches:
- main
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths-ignore:
# specific folder locations
- ".vscode/**"
- "docs/**"
# filetypes
- "**.md"
- "**.rst"
- "**.ipynb"
- "**.cff"
- "**.png"
workflow_run:
workflows: ["Build and upload to PyPI"]
types:
- completed

jobs:
build:
if: github.event.pull_request.draft == false
name: Build for (${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}

Expand Down

0 comments on commit 974cb60

Please sign in to comment.