Skip to content

alias を使う

alias を使う #35

Workflow file for this run

name: Deploy
on:
push:
branches:
- 'main'
permissions:
contents: read
deployments: write
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout commit
uses: actions/checkout@v3
- name: SetUp Node.js
uses: actions/setup-node@v3
with:
node-version: '20.9.0'
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8.9.2
run_install: false
- name: Get pnpm store directory
shell: bash
run: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Setup pnpm cache
uses: actions/cache@v3
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: ${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Build Astro
run: pnpm build
- name: Cloudflare Pages Deploy
uses: cloudflare/pages-action@v1
with:
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
projectName: blog-0maru-dev
directory: dist