We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c271ae6 commit 3c95134Copy full SHA for 3c95134
.github/workflows/quarto_publish.yml
@@ -15,15 +15,10 @@ jobs:
15
- name: Check out repository
16
uses: actions/checkout@v4
17
18
- - name: Ensure gh-pages branch exists
+ - name: Initialise gh-pages on origin
19
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
+ echo "Pushing current commit to origin/gh-pages (creates or updates)"
+ git push origin HEAD:gh-pages
27
28
- name: Set up Quarto
29
uses: quarto-dev/quarto-actions/setup@v2
0 commit comments