File tree Expand file tree Collapse file tree 3 files changed +45
-1
lines changed Expand file tree Collapse file tree 3 files changed +45
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Build and deploy to pages
2
+
3
+ on :
4
+ push :
5
+ branches : [ "master" ]
6
+ pull_request :
7
+ branches : [ "master" ]
8
+
9
+ permissions :
10
+ pages : write
11
+ id-token : write
12
+
13
+ jobs :
14
+ build :
15
+ runs-on : ubuntu-latest
16
+ steps :
17
+ - uses : actions/checkout@v4
18
+ - name : Use Node.js 22.x
19
+ uses : actions/setup-node@v4
20
+ with :
21
+ node-version : 22.x
22
+ cache : ' npm'
23
+ - name : Install dependencies
24
+ run : npm ci
25
+ - name : Build
26
+ run : npm run build
27
+ - name : Upload
28
+ uses : actions/upload-pages-artifact@v3
29
+ with :
30
+ path : dist/
31
+
32
+ deploy :
33
+ environment :
34
+ name : github-pages
35
+ url : ${{ steps.deployment.outputs.page_url }}
36
+ runs-on : ubuntu-latest
37
+ if : github.event_name == 'push' && needs.build.result == 'success'
38
+ needs : build
39
+ steps :
40
+ - name : Deploy to GitHub Pages
41
+ id : deployment
42
+ uses : actions/deploy-pages@v4
43
+ with :
44
+ token : ${{ github.token }}
Original file line number Diff line number Diff line change 3
3
< head >
4
4
< title > Skyltprogram</ title >
5
5
< meta charset ="UTF-8 ">
6
- < link rel ="stylesheet " href ="styles.css ">
6
+ < link rel ="stylesheet " href ="css/ styles.css ">
7
7
</ head >
8
8
< body >
9
9
< div id ="header "> < select id ="selectTemplate "> < option value ="-1 " disabled selected > Ladda ett exempel...</ option > </ select > </ div >
File renamed without changes.
You can’t perform that action at this time.
0 commit comments