Skip to content

Commit

Permalink
pipeline: add/github pages workflow
Browse files Browse the repository at this point in the history
- to the main "docs" version
  • Loading branch information
mrostamii committed Feb 7, 2024
1 parent e52ee93 commit 90a259e
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/workflows/deploy-docusaurus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Deploy Docusaurus to GitHub Pages

on:
push:
branches:
- main

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false

- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '18'

- name: Install and Build
run: |
npm install
npm run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
2 changes: 1 addition & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const config = {
favicon: 'img/favicon.ico',

// Set the production url of your site here
url: 'https://www.nimbora.io/',
url: 'https://docs.nimbora.io/',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/',
Expand Down

0 comments on commit 90a259e

Please sign in to comment.