Skip to content

Commit

Permalink
Aggregate docs differrently
Browse files Browse the repository at this point in the history
  • Loading branch information
ch1bo committed Apr 4, 2023
1 parent a6010ad commit f804578
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/publish-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
workflow_conclusion: success
branch: release
name: docs-stable
path: docs/public/
path: public/head-protocol/

- name: 📥 Download & merge unstable docs with released
uses: dawidd6/action-download-artifact@v2
Expand All @@ -29,13 +29,18 @@ jobs:
workflow_conclusion: success
branch: master
name: docs-unstable
path: docs/public/unstable
path: public/head-protocol/unstable/

- name: 👉 Create redirect
run: |
echo "hydra.family" > public/CNAME
echo '<!DOCTYPE html><html><head><meta http-equiv="Refresh" content="0; URL=https://hydra.family/head-protocol"></head></html>' > public/index.html
- name: 🚢 Publish Documentation
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN || github.token }}
publish_dir: docs/public
publish_dir: public
enable_jekyll: true
force_orphan: true

0 comments on commit f804578

Please sign in to comment.