diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ab7ded42..6dc4e0f0 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,6 +3,9 @@ name: Publish Build on: push: branches: [ "main" ] + # This is a low-traffic but critical repo, so we want to catch build regressions due to GitHub updates early, and at least be able to bisect + schedule: + - cron: '0 0 * * 0' # Every Sunday at midnight (GitHub runners are updated weekly) workflow_dispatch: inputs: version_prerelease_identifier: @@ -38,7 +41,9 @@ jobs: shell: cmd run: | cmake --build --preset release --target nuget + - name: Publish NuGet Package + if: github.event_name != 'schedule' shell: cmd env: GITHUB_TOKEN: ${{ secrets.NUGET_TOKEN }} @@ -54,4 +59,4 @@ jobs: nuget sources Add -Name %NUGET_SOURCE_NAME% -Source %NUGET_PUBLISH_URL% -username %GITHUB_USERNAME% -password %GITHUB_TOKEN% -StorePasswordInClearText nuget setApiKey %GITHUB_TOKEN% -Source %NUGET_PUBLISH_URL% - nuget push %GITHUB_WORKSPACE%\build\release\*.nupkg -Source %NUGET_SOURCE_NAME% \ No newline at end of file + nuget push %GITHUB_WORKSPACE%\build\release\*.nupkg -Source %NUGET_SOURCE_NAME%