File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Deploy to GitHub Pages
2-
3- on :
4- push :
5- branches : [master] # or 'master' if your default branch is named master
6-
7- permissions :
8- contents : read
9- pages : write
10- id-token : write
11-
12- jobs :
13- build :
14- runs-on : ubuntu-latest
15-
16- steps :
17- - name : Checkout repository
18- uses : actions/checkout@v4
19-
20- - name : Setup Node.js
21- uses : actions/setup-node@v4
22- with :
23- node-version : 20
24-
25- - name : Install dependencies
26- run : npm install
27-
28- - name : Build Astro project
29- run : npm run build
30-
31- - name : Upload artifact
32- uses : actions/upload-pages-artifact@v3
33- with :
34- path : ./dist
35-
36- deploy :
37- needs : build
38- runs-on : ubuntu-latest
39- permissions :
40- pages : write
41- id-token : write
42- environment :
43- name : github-pages
44- url : ${{ steps.deployment.outputs.page_url }}
45-
46- steps :
47- - name : Deploy to GitHub Pages
48- id : deployment
49- uses : actions/deploy-pages@v4
1+ # name: Deploy to GitHub Pages
2+
3+ # on:
4+ # push:
5+ # branches: [master] # or 'master' if your default branch is named master
6+
7+ # permissions:
8+ # contents: read
9+ # pages: write
10+ # id-token: write
11+
12+ # jobs:
13+ # build:
14+ # runs-on: ubuntu-latest
15+
16+ # steps:
17+ # - name: Checkout repository
18+ # uses: actions/checkout@v4
19+
20+ # - name: Setup Node.js
21+ # uses: actions/setup-node@v4
22+ # with:
23+ # node-version: 20
24+
25+ # - name: Install dependencies
26+ # run: npm install
27+
28+ # - name: Build Astro project
29+ # run: npm run build
30+
31+ # - name: Upload artifact
32+ # uses: actions/upload-pages-artifact@v3
33+ # with:
34+ # path: ./dist
35+
36+ # deploy:
37+ # needs: build
38+ # runs-on: ubuntu-latest
39+ # permissions:
40+ # pages: write
41+ # id-token: write
42+ # environment:
43+ # name: github-pages
44+ # url: ${{ steps.deployment.outputs.page_url }}
45+
46+ # steps:
47+ # - name: Deploy to GitHub Pages
48+ # id: deployment
49+ # uses: actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments