Skip to content

Commit eb54c5e

Browse files
authored
Merge pull request #376 from ynput/375-fix-docusaurus-deploymeny
Fix documentation deployment
2 parents a1219fc + 0b12ed4 commit eb54c5e

2 files changed

Lines changed: 9 additions & 8 deletions

File tree

.github/workflows/documentation.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,12 @@ jobs:
4848
run: yarn install
4949
- name: 🔨 Build
5050
run: yarn run build
51-
- name: 📂 Sync files
52-
uses: SamKirkland/FTP-Deploy-Action@v4.3.4
51+
- name: 📂 Deploy to GitHub Pages
52+
uses: peaceiris/actions-gh-pages@v4
53+
if: github.ref == 'refs/heads/main'
5354
with:
54-
server: ftp.openpype.io
55-
username: ${{ secrets.ftp_user }}
56-
password: ${{ secrets.ftp_password }}
57-
protocol: ftps
58-
local-dir: ./website/build/
55+
deploy_key: ${{ secrets.DOCS_DEPLOY_KEY }}
56+
publish_dir: ./website/build
57+
external_repository: ynput/ynput.github.io
58+
publish_branch: main
59+
cname: docs.ayon.dev

website/docusaurus.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const config = {
1414
title: "AYON Docs",
1515
tagline:
1616
"Documentation for the most robust open-source pipeline for studios and remote teams",
17-
url: "https://docs.ynput.io", // Your website URL
17+
url: "https://ynput.github.io", // Your website URL
1818
baseUrl: "/",
1919
onBrokenLinks: "warn",
2020
onBrokenMarkdownLinks: "warn",

0 commit comments

Comments
 (0)