Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create en/latest symlink. #5935

Merged
merged 1 commit into from
Aug 11, 2024
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
28 changes: 26 additions & 2 deletions .github/workflows/quarto-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,34 @@ jobs:
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2

- name: Render and Publish
uses: quarto-dev/quarto-actions/publish@v2
## We could render and publish in one step, however we need to, at
## least temporarily, preserve the old en/latest/ paths from the
## readthedocs version. So we render, create the link, then publish.
#- name: Render and Publish
# uses: quarto-dev/quarto-actions/publish@v2
# with:
# path: ./docs
# target: gh-pages
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Render
uses: quarto-dev/quarto-actions/render@v2
with:
path: ./docs
to: html

- name: Create en/latest symlink
run: |
mkdir ./docs/_site/en
cd docs/_site/en
ln -s ../../_site latest

- name: Publish
uses: quarto-dev/quarto-actions/publish@v2
with:
path: ./docs
target: gh-pages
render: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading