Skip to content

Commit 3ac0bb5

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

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

.github/workflows/static.yml

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,54 @@
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

12-
# Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages
1310
permissions:
1411
contents: read
1512
pages: write
1613
id-token: write
1714

18-
# Allow one concurrent deployment
1915
concurrency:
2016
group: 'pages'
2117
cancel-in-progress: true
2218

2319
jobs:
24-
# Single deploy job since we're just deploying
2520
deploy:
2621
environment:
2722
name: github-pages
2823
url: ${{ steps.deployment.outputs.page_url }}
2924
runs-on: ubuntu-latest
3025
steps:
31-
- name: Checkout
26+
- name: Checkout repository
3227
uses: actions/checkout@v4
28+
3329
- name: Set up Node
3430
uses: actions/setup-node@v3
3531
with:
3632
node-version: 18
3733
cache: 'npm'
34+
3835
- name: Install dependencies
3936
run: npm install
40-
- name: Build
41-
run: npm run build
42-
- name: Setup Pages
43-
uses: actions/configure-pages@v3
44-
- name: Upload artifact
37+
38+
- name: Build the site
39+
run: |
40+
echo "Building the project..."
41+
npm run build
42+
echo "Build completed!"
43+
44+
- name: Verify dist folder exists
45+
run: ls -l ./dist
46+
47+
- name: Upload artifact for Pages
4548
uses: actions/upload-pages-artifact@v2
4649
with:
47-
# Upload dist repository
4850
path: './dist'
51+
4952
- name: Deploy to GitHub Pages
5053
id: deployment
51-
uses: actions/deploy-pages@v2
54+
uses: actions/deploy-pages@v2

0 commit comments

Comments
 (0)