mainブランチの内容をもとにAPIから事前にデータを取得しCloudflare Pagesにデプロイ #48
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: mainブランチの内容をもとにAPIから事前にデータを取得しCloudflare Pagesにデプロイ | |
on: | |
schedule: | |
- cron: "0 15 * * *" # 毎日0時(日本時間)にビルド | |
workflow_dispatch: | |
push: | |
branches: | |
- "main" | |
jobs: | |
deploy: | |
name: deploy to cloudflare | |
runs-on: ubuntu-latest | |
environment: | |
name: "quaint-app" | |
url: https://2025-quaint-app.pages.dev/ | |
steps: | |
- name: Cloudflareのデプロイフックを実行 | |
run: | | |
curl -X POST ${{ secrets.CLOUDFLARE_DEPLOY_HOOK_URL }} |