File tree Expand file tree Collapse file tree 4 files changed +617
-0
lines changed Expand file tree Collapse file tree 4 files changed +617
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Generate docs for OpenJDK images
2
+ on :
3
+ push :
4
+ branches :
5
+ - ' repository-moved'
6
+ workflow_dispatch :
7
+
8
+ permissions :
9
+ contents : read
10
+ pages : write
11
+ id-token : write
12
+ concurrency :
13
+ group : " pages"
14
+ cancel-in-progress : false
15
+
16
+ jobs :
17
+ gendocs :
18
+ name : Generate documentation
19
+ runs-on : ubuntu-latest
20
+ strategy :
21
+ fail-fast : false
22
+ steps :
23
+ - uses : actions/checkout@v2
24
+
25
+ - name : Generate docs
26
+ run : |
27
+ ./docs/create.sh
28
+
29
+ - name : Setup Pages
30
+ uses : actions/configure-pages@v5
31
+
32
+ - name : Upload artifact
33
+ uses : actions/upload-pages-artifact@v3
34
+ with :
35
+ path : ' docs'
36
+
37
+ - name : Deploy to GitHub Pages
38
+ id : deployment
39
+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change
1
+ if [ -d docs ]; then
2
+ cd docs
3
+ fi
4
+
5
+ prefix=https://rh-openjdk.github.io/redhat-openjdk-containers/
6
+
7
+ while read path; do
8
+ d=" $( dirname $path ) "
9
+ mkdir -p " $d "
10
+ uri=" $prefix /$path "
11
+
12
+ sed " s!DESTINATION!$uri !g" \
13
+ moved.html \
14
+ > " $path "
15
+
16
+ done < uris_to_create
You can’t perform that action at this time.
0 commit comments