File tree Expand file tree Collapse file tree 9 files changed +2385
-36
lines changed Expand file tree Collapse file tree 9 files changed +2385
-36
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy to Pages
2
+
3
+ on :
4
+ push :
5
+ branches : ['main']
6
+ workflow_dispatch :
7
+
8
+ permissions :
9
+ contents : read
10
+ pages : write
11
+ id-token : write
12
+
13
+ concurrency :
14
+ group : ' pages'
15
+ cancel-in-progress : false
16
+
17
+ env :
18
+ BUILD_PATH : ' .'
19
+
20
+ jobs :
21
+ build :
22
+ name : Build
23
+ runs-on : ubuntu-latest
24
+ steps :
25
+ - name : Checkout
26
+ uses : actions/checkout@v4
27
+ - uses : pnpm/action-setup@v4
28
+ with :
29
+ version : 9
30
+ - name : Setup Node
31
+ uses : actions/setup-node@v4
32
+ with :
33
+ node-version : ' 20'
34
+ cache : pnpm
35
+ cache-dependency-path : pnpm-lock.yaml
36
+ - name : Setup Pages
37
+ id : pages
38
+ uses : actions/configure-pages@v5
39
+ - name : Install dependencies
40
+ run : pnpm i --frozen-lockfile
41
+ working-directory : ${{ env.BUILD_PATH }}
42
+ - name : Build
43
+ run : |
44
+ pnpm build --base-url "${{ steps.pages.outputs.base_path }}"
45
+ working-directory : ${{ env.BUILD_PATH }}
46
+ - name : Upload artifact
47
+ uses : actions/upload-pages-artifact@v3
48
+ with :
49
+ path : ${{ env.BUILD_PATH }}/dist
50
+
51
+ deploy :
52
+ environment :
53
+ name : github-pages
54
+ url : ${{ steps.deployment.outputs.page_url }}
55
+ needs : build
56
+ runs-on : ubuntu-latest
57
+ name : Deploy
58
+ steps :
59
+ - name : Deploy to GitHub Pages
60
+ id : deployment
61
+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change
1
+ node_modules
2
+ /dist
3
+ .DS_Store
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " tinytownstudio.github.io" ,
3
+ "version" : " 0.0.0" ,
4
+ "main" : " index.js" ,
5
+ "scripts" : {
6
+ "dev" : " pub ./src " ,
7
+ "build" : " pub ./src ./dist"
8
+ },
9
+ "keywords" : [],
10
+ "author" : " " ,
11
+ "license" : " ISC" ,
12
+ "devDependencies" : {
13
+ "@tinytown/pub" : " ^0.0.2" ,
14
+ "autoprefixer" : " ^10.4.20" ,
15
+ "tailwindcss" : " ^3.4.15"
16
+ }
17
+ }
You can’t perform that action at this time.
0 commit comments