File tree Expand file tree Collapse file tree 1 file changed +17
-8
lines changed Expand file tree Collapse file tree 1 file changed +17
-8
lines changed Original file line number Diff line number Diff line change
1
+ name : Balanced ternary to decimal pipeline
2
+
3
+ permissions :
4
+ contents : write
5
+ pages : write
6
+
1
7
on :
2
8
push :
3
9
branches : [ main, master ]
8
14
build :
9
15
name : Build and Test
10
16
runs-on : ubuntu-latest
11
-
17
+
12
18
steps :
13
19
- name : Checkout repository
14
20
uses : actions/checkout@v3
15
-
21
+
16
22
- name : Setup Node.js
17
23
uses : actions/setup-node@v3
18
24
with :
19
25
node-version : ' 18'
20
26
cache : ' npm'
21
-
27
+
22
28
- name : Install dependencies
23
29
run : npm ci
24
-
30
+
25
31
- name : Build Astro project
26
32
run : npm run build
27
-
33
+
28
34
- name : Cache build output
29
35
uses : actions/cache@v3
30
36
with :
31
37
path : dist
32
38
key : ${{ runner.os }}-astro-build-${{ github.sha }}
33
-
39
+
34
40
deploy :
35
- name : Deploy
41
+ name : Deploy to GitHub Pages
36
42
needs : build
37
- if : github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master')
43
+ if : |
44
+ github.event_name == 'push' &&
45
+ (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master')
38
46
runs-on : ubuntu-latest
39
47
40
48
steps :
60
68
folder : dist
61
69
clean : true
62
70
token : ${{ secrets.GITHUB_TOKEN }}
71
+
You can’t perform that action at this time.
0 commit comments