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
51 changes: 51 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# https://docusaurus.io/docs/deployment#deploying-to-github-pages

name: Deploy to GitHub Pages

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
test-deploy:
if: github.event_name != 'push'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
cache-dependency-path: ./website/yarn.lock
- name: Install dependencies
working-directory: ./website
run: yarn install --frozen-lockfile
- name: Test build website
working-directory: ./website
run: yarn build

deploy:
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
cache-dependency-path: ./website/yarn.lock
- uses: webfactory/ssh-agent@v0.5.0
with:
ssh-private-key: ${{ secrets.GH_PAGES_DEPLOY }}
- name: Deploy to GitHub Pages
env:
GIT_USER: personiumio
USE_SSH: true
working-directory: ./website
run: |
git config --global user.email "personiumio@gmail.com"
git config --global user.name "personiumio"
yarn install --frozen-lockfile
yarn run publish-gh-pages
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ lib/core/MetadataBlog.js

# website/translated_docs
website/build/
website/yarn.lock
website/node_modules
# website/i18n/*
website/translated_docs/out.json
Loading