Skip to content

Commit 89a3788

Browse files
committed
Update blank.yml
1 parent 4b24588 commit 89a3788

1 file changed

Lines changed: 11 additions & 22 deletions

File tree

.github/workflows/blank.yml

Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
name: Deployment for vue application
2-
1+
name: Deploy Github Actions Example Website
32
on:
43
push:
5-
branches:
6-
- main
4+
branches: [main]
75

86
permissions:
97
pages: write
@@ -13,22 +11,13 @@ jobs:
1311
deploy:
1412
runs-on: ubuntu-latest
1513
steps:
16-
- name: Checkout code
17-
uses: actions/checkout@v5
18-
19-
- name: Setup node
20-
uses: actions/setup-node@v5
21-
22-
- name: Install packages
23-
run: npm i
24-
25-
26-
- name: Build project
27-
run: npm run build
28-
29-
# fix this issue
30-
- name: Upload to GitHub Pages
31-
uses: upload-pages-artifact@v4
14+
- uses: actions/checkout@v5
15+
- uses: actions/setup-node@v4
16+
with:
17+
node-version: lts/*
18+
- run: npm ci
19+
- run: npm run build
20+
- uses: actions/upload-pages-artifact@v4
3221
with:
33-
path: ./dist
34-
uses: actions/deploy-pages@v4
22+
path: './dist'
23+
- uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)