From 5b4f00fbc28c1b12572b7b59044fce1996310af9 Mon Sep 17 00:00:00 2001 From: toapuro <164835903+toapuro@users.noreply.github.com> Date: Mon, 9 Feb 2026 21:04:37 +0900 Subject: [PATCH 1/3] =?UTF-8?q?ci:=20Cloudflare=20Pages=E3=81=A7=E3=81=AEP?= =?UTF-8?q?R=E3=81=AE=E3=83=97=E3=83=AC=E3=83=93=E3=83=A5=E3=83=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy-preview.yml | 29 ++++++++++++++++++++++++++++ .github/workflows/deploy.yml | 2 +- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/deploy-preview.yml diff --git a/.github/workflows/deploy-preview.yml b/.github/workflows/deploy-preview.yml new file mode 100644 index 0000000..593c9db --- /dev/null +++ b/.github/workflows/deploy-preview.yml @@ -0,0 +1,29 @@ +name: Deploy to Cloudflare Pages + +on: + workflow_dispatch: + pull_request_target: + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v5 + with: + python-version: 3.x + - run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV + - uses: actions/cache@v4 + with: + key: mkdocs-material-${{ env.cache_id }} + path: ~/.cache + restore-keys: | + mkdocs-material- + - run: pip install -r requirements.txt + - run: mkdocs build --strict + - uses: cloudflare/pages-action@v1 + with: + apiToken: ${{ secrets.CF_API_TOKEN }} + accountId: ${{ secrets.CF_ACCOUNT_ID }} + projectName: modding-notes + directory: ./site \ No newline at end of file diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a3fdb59..97f545c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,4 +1,4 @@ -name: ci +name: Deploy on: push: branches: From 4f9ea083b712ec8da9d319283419a1bba270f044 Mon Sep 17 00:00:00 2001 From: toapuro <164835903+toapuro@users.noreply.github.com> Date: Mon, 9 Feb 2026 22:06:51 +0900 Subject: [PATCH 2/3] =?UTF-8?q?ci:=20wrangler-action=E3=81=AB=E5=A4=89?= =?UTF-8?q?=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy-preview.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-preview.yml b/.github/workflows/deploy-preview.yml index 593c9db..aed364e 100644 --- a/.github/workflows/deploy-preview.yml +++ b/.github/workflows/deploy-preview.yml @@ -21,9 +21,10 @@ jobs: mkdocs-material- - run: pip install -r requirements.txt - run: mkdocs build --strict - - uses: cloudflare/pages-action@v1 + - name: Deploy pages preview + id: deploy-pages-preview + uses: cloudflare/wrangler-action@v3 with: - apiToken: ${{ secrets.CF_API_TOKEN }} + apiToken: ${{ secrets.CF_API_KEY }} accountId: ${{ secrets.CF_ACCOUNT_ID }} - projectName: modding-notes - directory: ./site \ No newline at end of file + command: pages deploy ./site --project-name "modding-notes" --branch="${{ github.head_ref }} \ No newline at end of file From 00c3acaaf324d4aa7984cc3a9f3403e361ae8ee1 Mon Sep 17 00:00:00 2001 From: toapuro <164835903+toapuro@users.noreply.github.com> Date: Mon, 9 Feb 2026 22:10:53 +0900 Subject: [PATCH 3/3] =?UTF-8?q?fix:=20=E6=A7=8B=E6=96=87=E3=82=A8=E3=83=A9?= =?UTF-8?q?=E3=83=BC=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy-preview.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-preview.yml b/.github/workflows/deploy-preview.yml index aed364e..20137a8 100644 --- a/.github/workflows/deploy-preview.yml +++ b/.github/workflows/deploy-preview.yml @@ -27,4 +27,4 @@ jobs: with: apiToken: ${{ secrets.CF_API_KEY }} accountId: ${{ secrets.CF_ACCOUNT_ID }} - command: pages deploy ./site --project-name "modding-notes" --branch="${{ github.head_ref }} \ No newline at end of file + command: pages deploy ./site --project-name "modding-notes" --branch="${{ github.head_ref }}" \ No newline at end of file