Skip to content

Commit 1dd9baa

Browse files
committed
Deploy to GitHub Pages
1 parent ee2a7df commit 1dd9baa

1 file changed

Lines changed: 14 additions & 5 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Deploy-to-AWS
1+
name: Deploy to GitHub Pages
22

33
on:
44
push:
@@ -12,10 +12,19 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v4
1414

15-
- name: npm install
15+
- name: Setup Node.js
1616
uses: actions/setup-node@v4
1717
with:
1818
node-version: 20
19-
- run: npm install --only=dev
20-
- run: node scripts/ssr.js --no-sandbox
21-
- run: BUCKET=${{secrets.BUCKET}} AWS_ACCESS_KEY_ID=${{secrets.AWS_ACCESS_KEY_ID}} AWS_SECRET_ACCESS_KEY=${{secrets.AWS_SECRET_ACCESS_KEY}} DISTRIBUTION_ID=${{secrets.DISTRIBUTION_ID}} node scripts/deploy.js
19+
20+
- name: Install dependencies
21+
run: npm install --only=dev
22+
23+
- name: Build
24+
run: node scripts/ssr.js --no-sandbox
25+
26+
- name: Deploy to GitHub Pages
27+
uses: peaceiris/actions-gh-pages@v3
28+
with:
29+
github_token: ${{ secrets.GITHUB_TOKEN }}
30+
publish_dir: ./src

0 commit comments

Comments
 (0)