Skip to content
Open
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
43 changes: 20 additions & 23 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,36 @@
name: Deploy
name: Deploy to GitHub Pages

on:
push:
branches:
- main
workflow_dispatch:
inputs:
environment:
description: 'Environment to deploy to'
required: true
default: 'production'
type: choice
options:
- production
- staging
version:
description: 'Version to deploy'
required: false
type: string

permissions:
contents: write

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'
node-version: "20"
cache: yarn

- name: Install dependencies
run: npx yarn install
run: yarn install --frozen-lockfile

- name: Build
run: yarn build

- name: Build and Deploy
run: |
npx yarn build
GIT_USER=cupOJoseph npx yarn deploy
- name: Deploy to gh-pages branch
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
cname: docs.nerite.org
2 changes: 1 addition & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const config = {
favicon: "img/favicon.ico",

// Set the production url of your site here
url: "https://neriteorg.github.io",
url: "https://docs.nerite.org",
// Set the /<baseUrl>/ pathname under which your site is served
baseUrl: "/",

Expand Down