From 07b02243694f9d1fc47625036a0a51bfb490a784 Mon Sep 17 00:00:00 2001 From: yamanoku <0910yama@gmail.com> Date: Tue, 16 Apr 2024 19:38:09 +0900 Subject: [PATCH] fix --- .github/workflows/cloudflare-pages-deploy.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cloudflare-pages-deploy.yml b/.github/workflows/cloudflare-pages-deploy.yml index 3715e0d..dddf101 100644 --- a/.github/workflows/cloudflare-pages-deploy.yml +++ b/.github/workflows/cloudflare-pages-deploy.yml @@ -4,12 +4,10 @@ on: [push] jobs: publish: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest permissions: contents: read deployments: write - statuses: write - steps: - name: Checkout uses: actions/checkout@v3 @@ -18,12 +16,12 @@ jobs: id: cloudflare_pages_deploy uses: cloudflare/pages-action@1 with: - accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} + accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} projectName: yamanoku-birthday directory: ./dist gitHubToken: ${{ secrets.GITHUB_TOKEN }} - + branch: main # これを追記 - name: Add publish URL as commit status uses: actions/github-script@v6