Commit 50ed5d1 1 parent 43e502b commit 50ed5d1 Copy full SHA for 50ed5d1
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
@@ -32,21 +34,17 @@ jobs:
32
34
mv hack/find_helm_chart_releases_and_create_helm_index.sh ../.tmp/
33
35
mv hack/gh-pages.tmpl ../.tmp/
34
36
35
- PAGES_BRANCH="gh-pages"
36
-
37
- git fetch --all --tags
38
-
39
- if git show-ref --verify --quiet refs/heads/$PAGES_BRANCH || git ls-remote --exit-code --heads origin $PAGES_BRANCH; then
37
+ if git show-ref --verify --quiet refs/heads/gh-pages || git ls-remote --exit-code --heads origin gh-pages; then
40
38
# Branch exists
41
- git checkout $PAGES_BRANCH
42
- echo "Checked out existing branch '$PAGES_BRANCH '"
39
+ git checkout gh-pages
40
+ echo "Checked out existing branch 'gh-pages '"
43
41
else
44
42
# Branch does not exist
45
- git symbolic-ref HEAD refs/heads/$PAGES_BRANCH
43
+ git symbolic-ref HEAD refs/heads/gh-pages
46
44
rm .git/index
47
45
git clean -fdx
48
46
echo ".tmp/" > .gitignore
49
- echo "Created and checked out new branch '$PAGES_BRANCH '"
47
+ echo "Created and checked out new branch 'gh-pages '"
50
48
fi
51
49
52
50
mv ../.tmp ./
You can’t perform that action at this time.
0 commit comments