Skip to content

Commit

Permalink
Run the release build weekly (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanlabelle authored Jul 1, 2024
1 parent 1dad021 commit b0cd253
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 }}
Expand All @@ -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%
nuget push %GITHUB_WORKSPACE%\build\release\*.nupkg -Source %NUGET_SOURCE_NAME%

0 comments on commit b0cd253

Please sign in to comment.