This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree 4 files changed +16
-1
lines changed 4 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,11 @@ if [[ -n $TAG_NAME ]]; then
17
17
ln -s " $TAG_NAME " out/stable
18
18
fi
19
19
20
+ if [[ $BETA = " true" ]]; then
21
+ echo " Update documentation for the beta release"
22
+ cp -r out/master out/beta
23
+ fi
24
+
20
25
# Generate version index that is shown as root index page
21
26
cp util/gh-pages/versions.html out/index.html
22
27
35
40
36
41
if [[ -n $TAG_NAME ]]; then
37
42
# Add the new dir
38
- git add $TAG_NAME
43
+ git add " $TAG_NAME "
39
44
# Update the symlink
40
45
git add stable
41
46
# Update versions file
42
47
git add versions.json
43
48
git commit -m " Add documentation for ${TAG_NAME} release: ${SHA} "
49
+ elif [[ $BETA = " true" ]]; then
50
+ git add beta
51
+ git commit -m " Automatic deploy to GitHub Pages (beta): ${SHA} "
44
52
else
45
53
git add .
46
54
git commit -m " Automatic deploy to GitHub Pages: ${SHA} "
Original file line number Diff line number Diff line change 4
4
push :
5
5
branches :
6
6
- master
7
+ - beta
7
8
tags :
8
9
- rust-1.**
9
10
34
35
run : |
35
36
TAG=$(basename ${{ github.ref }})
36
37
echo "::set-env name=TAG_NAME::$TAG"
38
+ - name : Set beta to true
39
+ if : github.ref == 'refs/heads/beta'
40
+ run : echo "::set-env name=BETA::true"
37
41
- name : Deploy
38
42
run : |
39
43
eval "$(ssh-agent -s)"
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ <h3 class="panel-title">
65
65
$scope . versionOrder = function ( v ) {
66
66
if ( v === 'master' ) { return Infinity ; }
67
67
if ( v === 'stable' ) { return Number . MAX_VALUE ; }
68
+ if ( v === 'beta' ) { return Number . MAX_VALUE - 1 ; }
68
69
69
70
return $scope . normalizeVersion ( v )
70
71
. split ( '.' )
Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ def key(v):
12
12
return float ('inf' )
13
13
if v == 'stable' :
14
14
return sys .maxsize
15
+ if v == 'beta' :
16
+ return sys .maxsize - 1
15
17
16
18
v = v .replace ('v' , '' ).replace ('rust-' , '' )
17
19
You can’t perform that action at this time.
0 commit comments