This repository was archived by the owner on Apr 3, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +28
-1
lines changed Expand file tree Collapse file tree 1 file changed +28
-1
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
branches :
6
6
- main
7
+ tags :
8
+ - ' v*'
9
+
10
+ concurrency : export-static-site
7
11
8
12
jobs :
9
13
export-static-site :
19
23
with :
20
24
submodules : recursive
21
25
22
- - name : Run "docker compose up" to export static site for Risk Profiler
26
+ - name : Run "docker compose up" to export static site for RiskProfiler
23
27
run : |
24
28
export DOCKER_WP_UID_GID="$(id -u):$(id -g)"
25
29
docker compose up --abort-on-container-exit --exit-code-from wpcli
30
34
github_token : ${{ secrets.GITHUB_TOKEN }}
31
35
publish_dir : ./html_static/riskprofiler
32
36
37
+ - uses : actions/upload-artifact@v3
38
+ with :
39
+ name : riskprofiler-ca-static-site
40
+ path : html_static/riskprofiler
41
+
33
42
- uses : actions/upload-artifact@v3
34
43
with :
35
44
name : simply-static-debug-log
36
45
path : wp-app/site/assets/plugins/simply-static/debug.txt
46
+
47
+ - if : startsWith(github.ref, 'refs/tags/')
48
+ name : Create tarball and ZIP file of static site
49
+ run : |
50
+ rp_ver="${GITHUB_REF/refs\/tags\//}"
51
+ cd html_static
52
+ GZIP=-9v tar cvzf riskprofiler.ca-static-site-${rp_ver}.tar.gz riskprofiler
53
+ zip -9rv riskprofiler.ca-static-site-${rp_ver}.zip riskprofiler
54
+
55
+ - if : startsWith(github.ref, 'refs/tags/')
56
+ name : Upload tarball and ZIP file as release assets
57
+ uses : xresloader/upload-to-github-release@v1
58
+ env :
59
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
60
+ with :
61
+ file : ' html_static/*.tar.gz;html_static/*.zip'
62
+ tags : true
63
+ draft : false
You can’t perform that action at this time.
0 commit comments