File tree Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 7979 - name : Move tasks-list built files in docs site
8080 run : mv WEB/tasks-list/build/ site/fractal-tasks
8181
82+ - name : Set last-updated timestamp
83+ - run : |
84+ CURRENT_DATE=$(date)
85+ echo "$CURRENT_DATE"
86+ sed -i'.bak' "s/LASTUPDATEDPLACEHOLDER/$CURRENT_DATE/" site/available_tasks/index.html
87+ rm site/available_tasks/index.html.bak
88+
8289 - run : ls -lh site/*
8390
8491 - name : Deploy docs
Original file line number Diff line number Diff line change @@ -15,10 +15,13 @@ hide:
1515<style >
1616.tasks-iframe {
1717 width : 100% ;
18- height : 900 px ;
18+ height : 800 px ;
1919 border : 0 ;
2020}
2121</style >
2222
2323<iframe src =" ../fractal-tasks/ " class =" tasks-iframe " >
2424 </iframe >
25+
26+
27+ (last updated: LASTUPDATEDPLACEHOLDER)
Original file line number Diff line number Diff line change @@ -32,6 +32,11 @@ cp "$CURRENT_DIR/tasks_data_retrieval/tasks.json" ./src/
3232npm run build
3333cp -r build " $CURRENT_DIR /site/fractal-tasks"
3434
35+ CURRENT_DATE=$( date)
36+ sed -i' .bak' " s/LASTUPDATEDPLACEHOLDER/$CURRENT_DATE /" " $CURRENT_DIR /site/available_tasks/index.html"
37+ rm " $CURRENT_DIR /site/available_tasks/index.html.bak"
38+
39+
3540deactivate
3641rm -r " $VENVDIR "
3742rm -rf " $WEBDIR "
You can’t perform that action at this time.
0 commit comments