Skip to content

Commit

Permalink
Add cron build every week
Browse files Browse the repository at this point in the history
  • Loading branch information
wvangeit committed Dec 11, 2024
1 parent 18ba847 commit 25d7ddd
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: build-wheel

on:
push:

schedule:
- cron: "5 0 * * 0"

jobs:
tag:
name: Tag new version
Expand All @@ -24,7 +26,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: false
DEFAULT_BUMP: patch

wheels:
name: Build wheel on ${{ matrix.python }} ${{ matrix.os }} ${{ matrix.arch }}
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -81,7 +83,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write
if: github.ref == 'refs/heads/master'
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
needs:
- tag
- wheels
Expand All @@ -102,7 +104,7 @@ jobs:
runs-on: ubuntu-latest
needs:
- release
if: github.ref == 'refs/heads/master'
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
environment:
name: testpypi
url: https://test.pypi.org/p/itis-dakota
Expand All @@ -125,7 +127,7 @@ jobs:
runs-on: ubuntu-latest
needs:
- test-pypi
if: github.ref == 'refs/heads/master'
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
environment:
name: pypi
url: https://pypi.org/p/itis-dakota
Expand Down

0 comments on commit 25d7ddd

Please sign in to comment.