Skip to content

Commit 8b92daa

Browse files
committed
update action
1 parent a8be3ec commit 8b92daa

File tree

1 file changed

+8
-23
lines changed

1 file changed

+8
-23
lines changed

.github/workflows/deploy.yml

Lines changed: 8 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,19 @@
11
name: Deploy to GitHub Pages
2-
32
on:
43
push:
54
branches:
6-
- main # Usa 'master' se quello è il tuo branch principale
7-
8-
permissions:
9-
contents: write # necessario per pushare su gh-pages
10-
5+
- main
116
jobs:
12-
build-deploy:
7+
deploy:
138
runs-on: ubuntu-latest
14-
159
steps:
16-
- name: Checkout repository
17-
uses: actions/checkout@v4
18-
19-
- name: Setup Node.js
20-
uses: actions/setup-node@v4
10+
- uses: actions/checkout@v3
11+
- uses: actions/setup-node@v3
2112
with:
22-
node-version: 20
23-
24-
- name: Install dependencies
25-
run: npm ci
26-
27-
- name: Build project
28-
run: npm run build
29-
30-
- name: Deploy to GitHub Pages
31-
uses: peaceiris/actions-gh-pages@v4
13+
node-version: 18
14+
- run: npm install
15+
- run: npm run build
16+
- uses: peaceiris/actions-gh-pages@v3
3217
with:
3318
github_token: ${{ secrets.GITHUB_TOKEN }}
3419
publish_dir: ./dist

0 commit comments

Comments
 (0)