Commit 8b5397b 1 parent 9a3bfc0 commit 8b5397b Copy full SHA for 8b5397b
File tree 1 file changed +7
-9
lines changed
1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change 4
4
release :
5
5
types : [published]
6
6
7
+ workflow_dispatch :
8
+
7
9
jobs :
8
10
release :
9
11
@@ -31,21 +33,17 @@ jobs:
31
33
mv hack/find_helm_chart_releases_and_create_helm_index.sh ../.tmp/
32
34
mv hack/gh-pages.tmpl ../.tmp/
33
35
34
- PAGES_BRANCH="gh-pages"
35
-
36
- git fetch --all --tags
37
-
38
- if git show-ref --verify --quiet refs/heads/$PAGES_BRANCH || git ls-remote --exit-code --heads origin $PAGES_BRANCH; then
36
+ if git show-ref --verify --quiet refs/heads/gh-pages || git ls-remote --exit-code --heads origin gh-pages; then
39
37
# Branch exists
40
- git checkout $PAGES_BRANCH
41
- echo "Checked out existing branch '$PAGES_BRANCH '"
38
+ git checkout gh-pages
39
+ echo "Checked out existing branch 'gh-pages '"
42
40
else
43
41
# Branch does not exist
44
- git symbolic-ref HEAD refs/heads/$PAGES_BRANCH
42
+ git symbolic-ref HEAD refs/heads/gh-pages
45
43
rm .git/index
46
44
git clean -fdx
47
45
echo ".tmp/" > .gitignore
48
- echo "Created and checked out new branch '$PAGES_BRANCH '"
46
+ echo "Created and checked out new branch 'gh-pages '"
49
47
fi
50
48
51
49
mv ../.tmp ./
You can’t perform that action at this time.
0 commit comments