diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 014c228dc6..fef82cac8c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,7 +6,7 @@ name: Build branches: - main schedule: - - cron: 0 11 * * * + - cron: 12 11 * * * jobs: detect-changes: @@ -1034,21 +1034,3 @@ jobs: with: name: pgbackrest path: pgbackrest - - deploy-hm-api-node: - name: Deploy hm-api-node - needs: detect-changes - if: ${{ needs.detect-changes.outputs.api-node == 'true' || needs.detect-changes.outputs.web == 'true' }} - runs-on: ubuntu-24.04 - environment: - name: production-web - url: https://www.hongbomiao.com - timeout-minutes: 10 - steps: - - name: Checkout - uses: actions/checkout@v4.2.2 - - name: Deploy to Render - env: - render_deploy_hook_url: ${{ secrets.RENDER_DEPLOY_HOOK_URL }} - run: | - curl "$render_deploy_hook_url" diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 1b061349c6..729bcff696 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -3,7 +3,7 @@ name: CodeQL 'on': schedule: - - cron: 0 9 * * * + - cron: 28 9 * * * jobs: codeql-c-cpp: diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000000..ecb37b7bcd --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,26 @@ +--- +name: Deploy + +'on': + push: + branches: + - main + schedule: + - cron: 9 11 * * * + +jobs: + deploy-hm-api-node: + name: Deploy hm-api-node + runs-on: ubuntu-24.04 + environment: + name: production + url: https://www.hongbomiao.com + timeout-minutes: 10 + steps: + - name: Checkout + uses: actions/checkout@v4.2.2 + - name: Deploy to Render + env: + render_deploy_hook_url: ${{ secrets.RENDER_DEPLOY_HOOK_URL }} + run: | + curl "$render_deploy_hook_url" diff --git a/.github/workflows/docker-prune.yml b/.github/workflows/docker-prune.yml index b21f709056..44a24fd77c 100644 --- a/.github/workflows/docker-prune.yml +++ b/.github/workflows/docker-prune.yml @@ -3,7 +3,7 @@ name: Docker | Prune 'on': schedule: - - cron: 0 12 * * * + - cron: 19 12 * * * jobs: prune: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fd71526c25..f8760978a2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,7 +3,7 @@ name: Release 'on': schedule: - - cron: 0 13 * * 1 + - cron: 33 11 * * 1 jobs: # https://semantic-release.gitbook.io/semantic-release/recipes/ci-configurations/github-actions diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1fe53690c1..35d9e5c473 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,7 +6,7 @@ name: Test branches: - main schedule: - - cron: 0 10 * * * + - cron: 23 10 * * * concurrency: group: ${{ github.workflow }}-${{ github.ref }}