File tree Expand file tree Collapse file tree 4 files changed +56
-1
lines changed Expand file tree Collapse file tree 4 files changed +56
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - website
7
+
8
+ permissions :
9
+ contents : read
10
+ pages : write
11
+ id-token : write
12
+
13
+ jobs :
14
+ deploy :
15
+ name : Deploy Website Preview
16
+ runs-on : ubuntu-latest
17
+
18
+ environment :
19
+ name : github-pages
20
+ url : ${{steps.deployment.outputs.page_url}}
21
+
22
+ steps :
23
+ - name : Checkout Code
24
+ uses : actions/checkout@v3
25
+
26
+ - name : Set up Python
27
+ uses : actions/setup-python@v5
28
+ with :
29
+ python-version : ' 3.11'
30
+
31
+ - name : Install Dependencies
32
+ run : |
33
+ make dev-deps
34
+
35
+ - name : Build Website Preview
36
+ run : |
37
+ make build
38
+
39
+ - name : Setup Pages
40
+ uses : actions/configure-pages@v3
41
+
42
+ - name : Upload Artifact
43
+ uses : actions/upload-pages-artifact@v2
44
+ with :
45
+ path : ' build'
46
+
47
+ - name : Deploy to GitHub Pages
48
+ id : deployment
49
+ uses : actions/deploy-pages@v2
Original file line number Diff line number Diff line change 1
- .PHONY : usage check pytest qa build-deps check
1
+ .PHONY : usage check pytest qa build-deps check build
2
2
usage :
3
3
@echo " Usage: make <target>, where target is one of:\n"
4
4
@echo " dev-deps: install Python dev dependencies"
22
22
23
23
pytest :
24
24
tox -e py
25
+
26
+ build :
27
+ mkdir -p build
28
+ python build.py > build/index.html
29
+ cp assets/pinout.css build/
30
+ cp assets/pinout.js build/
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments