forked from kamat/blog
fix workflow 6
This commit is contained in:
@@ -8,20 +8,23 @@ on:
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: node:20-bookworm
|
||||
env:
|
||||
CF_PAGES_PROJECT: ${{ vars.CF_PAGES_PROJECT }} # 例: blog
|
||||
CF_PAGES_PROJECT: ${{ vars.CF_PAGES_PROJECT }}
|
||||
PROD_BRANCH: "main"
|
||||
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||
|
||||
steps:
|
||||
- name: Check Node runtime
|
||||
run: node -v && node -e "console.log('crypto?', !!globalThis.crypto)"
|
||||
|
||||
- name: Checkout
|
||||
uses: https://github.com/actions/checkout@v4
|
||||
|
||||
- name: Install cobalt (prebuilt)
|
||||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
apt-get update && apt-get install -y ca-certificates curl tar git
|
||||
curl -fsSL https://zyedidia.github.io/eget.sh | sh
|
||||
./eget cobalt-org/cobalt.rs --to /usr/local/bin/cobalt
|
||||
@@ -30,7 +33,6 @@ jobs:
|
||||
- name: Build site with cobalt
|
||||
run: cobalt build # 出力: ./_site
|
||||
|
||||
# --- Wrangler ActionでPagesにデプロイ ---
|
||||
- name: Deploy to Cloudflare Pages
|
||||
uses: https://github.com/cloudflare/wrangler-action@v3
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user