Skip to content

Commit

Permalink
Merge pull request #1 from terrarium-earth/prod
Browse files Browse the repository at this point in the history
Prod
  • Loading branch information
CodexAdrian authored Aug 29, 2023
2 parents 5ea51d6 + 9b26f6d commit fc9dac6
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 2 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- prod
# Review gh actions docs if you want to further define triggers, paths, etc
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on

jobs:
deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn

- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build website
run: yarn build

# Popular action to deploy to GitHub Pages:
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.TOKEN }}
# Build output to publish to the `gh-pages` branch:
publish_dir: ./build
1 change: 1 addition & 0 deletions CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docs.terrarium.earth
1 change: 1 addition & 0 deletions docs/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docs.terrarium.earth
5 changes: 3 additions & 2 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ const config = {
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'terrarium-earth', // Usually your GitHub org/user name.
projectName: 'terrarium-docs', // Usually your repo name.
projectName: 'project-odyssey', // Usually your repo name.
trailingSlash: false,

onBrokenLinks: 'throw',
onBrokenLinks: 'warn',
onBrokenMarkdownLinks: 'warn',

// Even if you don't use internalization, you can use this field to set useful
Expand Down

0 comments on commit fc9dac6

Please sign in to comment.