Skip to content

Commit 98e8f49

Browse files
committed
remove ghPages
1 parent 1120558 commit 98e8f49

File tree

4 files changed

+20
-596
lines changed

4 files changed

+20
-596
lines changed

.github/workflows/deploy.yml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,32 @@ name: Deploy to GitHub Pages
33
on:
44
push:
55
branches:
6-
- main
6+
- main # Usa 'master' se quello è il tuo branch principale
7+
8+
permissions:
9+
contents: write # necessario per pushare su gh-pages
710

811
jobs:
9-
build-and-deploy:
12+
build-deploy:
1013
runs-on: ubuntu-latest
1114

1215
steps:
13-
- name: Checkout repo
14-
uses: actions/checkout@v3
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
1518

1619
- name: Setup Node.js
17-
uses: actions/setup-node@v3
20+
uses: actions/setup-node@v4
1821
with:
1922
node-version: 20
2023

2124
- name: Install dependencies
22-
run: npm install
25+
run: npm ci
26+
27+
- name: Build project
28+
run: npm run build
2329

24-
- name: Build and Deploy
25-
run: npm run deploy
26-
env:
27-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
- name: Deploy to GitHub Pages
31+
uses: peaceiris/actions-gh-pages@v4
32+
with:
33+
github_token: ${{ secrets.GITHUB_TOKEN }}
34+
publish_dir: ./dist

0 commit comments

Comments
 (0)