File tree Expand file tree Collapse file tree 5 files changed +68
-27
lines changed Expand file tree Collapse file tree 5 files changed +68
-27
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ set -e
3
+
4
+ mkdir -p HEAD
5
+ git fetch --all --tags
6
+ tags_string=$( git tag)
7
+ echo got tag string
8
+ echo $tags_string
9
+ tags_array=($tags_string )
10
+ mv $( ls --ignore=HEAD) HEAD/
11
+ for tag in " ${tags_array[@]} "
12
+ do
13
+ echo starting with tag $tag
14
+ mkdir $tag
15
+ cd $tag
16
+ git clone https://github.com/eclipse-dataspace-protocol-base/DataspaceProtocl.git --depth 1 --branch ${tag} --quiet
17
+ mv ./DataspaceProtocol/* .
18
+ cd ..
19
+ done
20
+ for dir in * /; do
21
+ echo " $dir "
22
+ pwd
23
+ ls -l
24
+ if [ -f " $dir /index.html" ]; then
25
+ cd " $dir /artifacts"
26
+ ./gradlew build
27
+ ./gradlew generateTablesFromSchemas
28
+ cd ..
29
+ pwd
30
+ mkdir ./figures
31
+ mkdir -p ./message/schema
32
+ mkdir -p ./message/example
33
+ mkdir -p ./message/table
34
+ cp -r ./artifacts/src/main/resources/** /* -schema.json ./message/schema
35
+ echo " successfully copied message schemas"
36
+ cp -r ./artifacts/src/main/resources/context/* .jsonld ./message/schema
37
+ echo " successfully copied jsonld contexts"
38
+ cp -r ./artifacts/src/main/resources/** /example/* .json ./message/example
39
+ echo " successfully copied message examples"
40
+ cp -r ./specifications/** /figures/* .png ./figures/
41
+ echo " successfully copied figures"
42
+ cp -r ./artifacts/build/generated/tables/* .html ./message/table
43
+ echo " successfully copied message property tables"
44
+ cd ..
45
+ else
46
+ echo " index does not exist. No copy operations"
47
+ fi
48
+ done
Original file line number Diff line number Diff line change
1
+ <!DOCTYPE HTML>
2
+ < html lang ="en ">
3
+ < head >
4
+ < meta charset ="utf-8 ">
5
+ < meta http-equiv ="refresh "
6
+ content ="0;url=https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/HEAD "/>
7
+ < link rel ="canonical " href ="https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/HEAD "/>
8
+ </ head >
9
+ < body >
10
+ < h4 >
11
+ This redirects to the latest Release Candidate < a href ="https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/HEAD "> here</ a >
12
+ </ h4 >
13
+ </ body >
14
+ </ html >
Original file line number Diff line number Diff line change @@ -14,16 +14,12 @@ jobs:
14
14
steps :
15
15
- uses : actions/checkout@v4
16
16
- uses : ./.github/actions/setup-java
17
- - name : build java
18
- run : |
19
- cd artifacts
20
- ./gradlew build
21
- ./gradlew generateTablesFromSchemas
22
- cd ..
23
17
- name : Copy files for correct web access
24
18
run : |
25
- chmod +x ./.github/workflows/script.sh
26
- ./.github/workflows/script.sh
19
+ chmod +x ./.github/scripts/checkout-tags.sh
20
+ ./.github/scripts/checkout-tags.sh
21
+ - name : Redirect top to head
22
+ run : cp .github/scripts/index.html .
27
23
- uses : actions/upload-pages-artifact@v3
28
24
with :
29
25
path : .
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 22
22
/message
23
23
/2024-1
24
24
/v0.8
25
- /figures
25
+ /figures
26
+ /HEAD
You can’t perform that action at this time.
0 commit comments