We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2308b0e commit 8c184a5Copy full SHA for 8c184a5
.github/workflows/cd.yml
@@ -27,13 +27,16 @@ jobs:
27
git config --global user.name "github-actions-bot"
28
git config --global user.email "[email protected]"
29
30
+ # Fetch all branches and make sure we have history for gh-pages
31
+ git fetch origin gh-pages
32
+
33
# Delete all files except .git
34
find . -maxdepth 1 ! -name '.git' ! -name '.' -exec rm -rf {} +
35
- # Create a new branch
36
+ # Create a new branch from gh-pages
37
timestamp=$(date +%s)
38
branch_name="build-update-${timestamp}"
- git checkout -b $branch_name
39
+ git checkout -b $branch_name origin/gh-pages
40
41
# Copy files from build folder
42
cp -r /tmp/build/* .
0 commit comments