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 37a85f1 commit 30159e5Copy full SHA for 30159e5
.github/workflows/build.yml
@@ -37,8 +37,15 @@ jobs:
37
TARGET_DIR="${VERSION}"
38
fi
39
40
- git fetch origin publish
41
- git checkout -b publish origin/publish
+ git fetch origin
+ if ! git show-ref --quiet refs/heads/publish; then
42
+ git checkout --orphan publish
43
+ git rm -rf .
44
+ git commit --allow-empty -m "Initial"
45
+ git push origin publish
46
+ else
47
+ git checkout -b publish origin/publish
48
+ fi
49
50
mkdir -p ${TARGET_DIR}
51
find "$TARGET_DIR" -mindepth 1 -not -regex '.*/[0-9]+\.[0-9]+\.[0-9]+$' -exec rm -rf {} +
0 commit comments