Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/sync-release-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,12 @@ jobs:

- name: Create or checkout dist branch into dist directory
run: |
git fetch origin
if git rev-parse --verify origin/dist >/dev/null 2>&1; then
echo "Dist branch exists, checking it out"
git worktree add dist origin/dist
cd dist
git pull origin dist
else
echo "Dist branch doesn't exist, creating new one"
git worktree add --orphan dist
Expand Down Expand Up @@ -87,9 +90,12 @@ jobs:

- name: Create or checkout gh-pages branch into gh-pages directory
run: |
git fetch origin
if git rev-parse --verify origin/gh-pages >/dev/null 2>&1; then
echo "gh-pages branch exists, checking it out"
git worktree add gh-pages origin/gh-pages
cd gh-pages
git pull origin gh-pages
else
echo "gh-pages branch doesn't exist, creating new one"
git worktree add --orphan gh-pages
Expand Down