Skip to content

Commit 3d08ae8

Browse files
committed
chore(deploy): fix GitHub actions
1 parent df5280d commit 3d08ae8

1 file changed

Lines changed: 12 additions & 10 deletions

File tree

.github/workflows/static.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
# Simple workflow for deploying static content to GitHub Pages
21
name: Deploy static content to Pages
32

43
on:
54
# Runs on pushes targeting the default branch
65
push:
76
branches: ['main']
8-
97
# Allows you to run this workflow manually from the Actions tab
108
workflow_dispatch:
119

@@ -21,31 +19,35 @@ concurrency:
2119
cancel-in-progress: true
2220

2321
jobs:
24-
# Single deploy job since we're just deploying
2522
deploy:
2623
environment:
2724
name: github-pages
2825
url: ${{ steps.deployment.outputs.page_url }}
2926
runs-on: ubuntu-latest
3027
steps:
31-
- name: Checkout
28+
- name: Checkout repository
3229
uses: actions/checkout@v4
30+
3331
- name: Set up Node
3432
uses: actions/setup-node@v3
3533
with:
3634
node-version: 18
3735
cache: 'npm'
36+
3837
- name: Install dependencies
3938
run: npm install
40-
- name: Build
39+
40+
- name: Build the site
4141
run: npm run build
42-
- name: Setup Pages
43-
uses: actions/configure-pages@v3
44-
- name: Upload artifact
42+
43+
- name: Verify dist folder
44+
run: ls -l ./dist
45+
46+
- name: Upload artifact for Pages
4547
uses: actions/upload-pages-artifact@v2
4648
with:
47-
# Upload dist repository
4849
path: './dist'
50+
4951
- name: Deploy to GitHub Pages
5052
id: deployment
51-
uses: actions/deploy-pages@v2
53+
uses: actions/deploy-pages@v2

0 commit comments

Comments
 (0)