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

coalesce publish/docsite jobs #1077

Merged
merged 3 commits into from
May 21, 2024
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
57 changes: 0 additions & 57 deletions .github/workflows/docsite.yml

This file was deleted.

38 changes: 37 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,40 @@ jobs:
with:
packages-dir: dist
skip-existing: true
verbose: true
verbose: true
docsite:
runs-on: ubuntu-latest
needs: [publish, build]
if: github.ref=='refs/heads/main' || github.ref=='refs/heads/dev'
permissions:
id-token: write
contents: write
steps:
- name: Download documentation artifact
uses: actions/download-artifact@v4
with:
name: documentation-site
path: docs/documentation-site
- name: Publish reference docs (dev branch)
uses: peaceiris/actions-gh-pages@v3
if: github.ref=='refs/heads/dev'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/documentation-site
destination_dir: pre-release
- name: Publish reference docs (main branch)
uses: peaceiris/actions-gh-pages@v3
if: github.ref=='refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/documentation-site
destination_dir: ${{ needs.publish.outputs.version }}
- name: Publish latest reference docs (main branch)
uses: peaceiris/actions-gh-pages@v3
if: github.ref=='refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/documentation-site
destination_dir: latest


Loading