File tree 1 file changed +22
-22
lines changed
1 file changed +22
-22
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Deploy Astro to GitHub Pages
3
3
on :
4
4
# Trigger the workflow every time you push to the `main` branch
5
5
push :
6
- branches : [ main ]
6
+ branches : [main]
7
7
# Allows you to run this workflow manually from the Actions tab on GitHub.
8
8
workflow_dispatch :
9
9
@@ -17,27 +17,27 @@ jobs:
17
17
build :
18
18
runs-on : ubuntu-latest
19
19
steps :
20
- - name : Check out your repository using git
21
- uses : actions/checkout@v2
22
-
23
- - name : Use Node.js 18
24
- uses : actions/setup-node@v2
25
- with :
26
- node-version : ' 18 '
27
- cache : ' npm'
28
-
29
- # Not using npm? Change `npm ci` to `yarn install` or `pnpm i`
30
- - name : Install dependencies
31
- run : npm ci
32
-
33
- # Not using npm? Change `npm run build` to `yarn build` or `pnpm run build`
34
- - name : Build Astro
35
- run : npm run build --if-present
36
-
37
- - name : Upload artifact
38
- uses : actions/upload-pages-artifact@v1
39
- with :
40
- path : ./dist
20
+ - name : Check out your repository using git
21
+ uses : actions/checkout@v2
22
+
23
+ - name : Use Node.js 16
24
+ uses : actions/setup-node@v2
25
+ with :
26
+ node-version : " 16 "
27
+ cache : " npm"
28
+
29
+ # Not using npm? Change `npm ci` to `yarn install` or `pnpm i`
30
+ - name : Install dependencies
31
+ run : npm ci
32
+
33
+ # Not using npm? Change `npm run build` to `yarn build` or `pnpm run build`
34
+ - name : Build Astro
35
+ run : npm run build --if-present
36
+
37
+ - name : Upload artifact
38
+ uses : actions/upload-pages-artifact@v1
39
+ with :
40
+ path : ./dist
41
41
42
42
deploy :
43
43
environment :
You can’t perform that action at this time.
0 commit comments