Skip to content

Commit 3c95134

Browse files
committed
fix(quarto_publish): trying to make it work without needing to create gh-pages branch first...!
1 parent c271ae6 commit 3c95134

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

.github/workflows/quarto_publish.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,10 @@ jobs:
1515
- name: Check out repository
1616
uses: actions/checkout@v4
1717

18-
- name: Ensure gh-pages branch exists
18+
- name: Initialise gh-pages on origin
1919
run: |
20-
if ! git ls-remote --heads origin gh-pages >/dev/null 2>&1; then
21-
echo "gh-pages does not exist, creating from main"
22-
git branch gh-pages
23-
git push origin gh-pages
24-
else
25-
echo "gh-pages already exists, nothing to do"
26-
fi
20+
echo "Pushing current commit to origin/gh-pages (creates or updates)"
21+
git push origin HEAD:gh-pages
2722
2823
- name: Set up Quarto
2924
uses: quarto-dev/quarto-actions/setup@v2

0 commit comments

Comments
 (0)