Skip to content

Commit

Permalink
coalesce publish/docsite jobs (#1077)
Browse files Browse the repository at this point in the history
* coalesce publish/docsite jobs

* restore branch controls

* remove pull_request trigger on publish
  • Loading branch information
darthtrevino authored May 21, 2024
1 parent b0f092b commit 6de499e
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 58 deletions.
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


0 comments on commit 6de499e

Please sign in to comment.