File tree 1 file changed +17
-0
lines changed
1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 11
11
jobs :
12
12
build :
13
13
runs-on : ubuntu-latest
14
+ permissions :
15
+ pages : write # to deploy to Pages
16
+ id-token : write # to verify the deployment originates from an appropriate source
17
+
14
18
steps :
15
19
- uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
20
+ with :
21
+ fetch-depth : 0 # to fetch all history
16
22
17
23
- name : Setup pnpm
18
24
uses : pnpm/action-setup@v2.4.0
34
40
35
41
- name : Test
36
42
run : pnpm test
43
+
44
+ - name : Upload pages artifacts
45
+ # https://github.com/actions/upload-pages-artifact
46
+ uses : actions/upload-pages-artifact@v3
47
+ with :
48
+ path : ' examples/vite/dist'
49
+
50
+ - name : Deploy to GitHub Pages
51
+ if : github.ref == 'refs/heads/main'
52
+ # https://github.com/actions/deploy-pages
53
+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments