Skip to content
Merged
Show file tree
Hide file tree
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
16 changes: 11 additions & 5 deletions .github/workflows/quarto-publish-update-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -390,18 +390,24 @@ jobs:
key: freeze-${{ runner.os }}-nightly-${{ github.run_id }}

# ── Deploy ───────────────────────────────────────────────
# Official actions/deploy-pages flow: package _site as the
# github-pages artifact, then deploy it straight to the
# github-pages environment. This replaces quarto publish --target
# gh-pages, which pushed the entire site to the gh-pages branch on
# every deploy (~493 MB per push, the main driver of repository
# growth tracked in issue #306).
- name: Upload Quarto artifacts
uses: actions/upload-pages-artifact@v3
with:
path: "_site"

- name: Configure GitHub Pages
uses: actions/configure-pages@v6

- name: Deploy to GitHub Pages
uses: quarto-dev/quarto-actions/publish@v2
uses: actions/deploy-pages@v5
with:
target: gh-pages
render: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
artifact_name: github-pages

- name: Cleanup temporary directory
if: always()
Expand Down
17 changes: 12 additions & 5 deletions .github/workflows/quarto-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -526,20 +526,27 @@ jobs:
key: freeze-${{ runner.os }}-${{ github.sha }}-${{ github.run_attempt }}

# ── Deploy ───────────────────────────────────────────────
# Official actions/deploy-pages flow: package _site as the
# github-pages artifact, then deploy it straight to the
# github-pages environment. This replaces quarto publish --target
# gh-pages, which pushed the entire site to the gh-pages branch on
# every deploy (~493 MB per push, the main driver of repository
# growth tracked in issue #306).
- name: Upload Quarto artifacts
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' || github.event_name == 'pull_request'
uses: actions/upload-pages-artifact@v3
with:
path: "_site"

- name: Configure GitHub Pages
if: github.event_name != 'pull_request'
uses: actions/configure-pages@v6

- name: Deploy to GitHub Pages
if: github.event_name != 'pull_request'
uses: quarto-dev/quarto-actions/publish@v2
uses: actions/deploy-pages@v5
with:
target: gh-pages
render: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
artifact_name: github-pages

- name: Cleanup temporary directory
if: always()
Expand Down
Loading