Skip to content

Commit b4162a1

Browse files
authored
Update deploy.yaml
1 parent fb260b7 commit b4162a1

File tree

1 file changed

+49
-49
lines changed

1 file changed

+49
-49
lines changed

.github/workflows/deploy.yaml

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

0 commit comments

Comments
 (0)