File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -34,12 +34,22 @@ jobs:
34
34
- name : Build documentation
35
35
run : sphinx-multiversion docs/source docs/build/html --keep-going --no-color
36
36
37
+ - name : Get the latest tag
38
+ run : |
39
+ # Fetch all tags
40
+ git fetch --tags
41
+ # Get the latest tag
42
+ latest_tag=$(git tag --sort=-creatordate | head -n 1)
43
+ # Remove the 'v' prefix if it exists
44
+ latest_tag_no_v=${latest_tag#v}
45
+ echo "LATEST_RELEASE=$latest_tag_no_v" >> $GITHUB_ENV
46
+
37
47
- name : Generate index.html for judge0.github.io/judge0-python.
38
48
run : |
39
49
echo '<!DOCTYPE html>
40
50
<html>
41
51
<head>
42
- <meta http-equiv="refresh" content="0; URL=master /index.html">
52
+ <meta http-equiv="refresh" content="0; URL='$GITHUB_ENV/LATEST_RELEASE' /index.html">
43
53
</head>
44
54
</html>' > docs/build/html/index.html
45
55
You can’t perform that action at this time.
0 commit comments