Skip to content

Commit

Permalink
動かなくなってたので修正
Browse files Browse the repository at this point in the history
  • Loading branch information
akku1139 authored Aug 31, 2024
1 parent 0ee90e4 commit 9feaba6
Showing 1 changed file with 21 additions and 18 deletions.
39 changes: 21 additions & 18 deletions .github/workflows/astro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,32 +21,35 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout ⏬
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Pages 📝
uses: actions/configure-pages@v3
uses: actions/configure-pages@v5

- name: Setup Node.js environment 💚
uses: actions/setup-node@v3.7.0
uses: actions/setup-node@v4
with:
node-version: 18.x
- name: Setup pnpm ✊
uses: pnpm/[email protected]
with:
version: latest
- name: Cache node_modules
id: node_modules_cache_id
node-version: latest

- name: Cache deps
uses: actions/cache@v4
with:
path: node_modules
key: npm-deps-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: pnpm-deps-
path: |
node_modules
~/.npm
key: npm-deps-${{ hashFiles('package-lock.json') }}
restore-keys: npm-deps-

- name: Install deps 🍢
run: pnpm install
run: npm install

- name: Build Website from Astro 🏭
run: pnpm build
run: npm run build

- name: Upload artifact ⏫
uses: actions/upload-pages-artifact@v2
uses: actions/upload-pages-artifact@v3
with:
path: './dist'

- name: Deploy to GitHub Pages ✍️
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v4

0 comments on commit 9feaba6

Please sign in to comment.