Skip to content

Merge pull request #923 from palisadoes/docs #1

Merge pull request #923 from palisadoes/docs

Merge pull request #923 from palisadoes/docs #1

name: Deploy to GitHub Pages
on:
push:
branches:
- 'develop'
jobs:
Deploy-Docusaurus:
name: Deploy https://docs.talawa.io website
runs-on: ubuntu-latest
if: ${{ github.actor != 'dependabot[bot]' }}
environment:
# This "name" has to be the repos' branch that contains
# the current active website. There must be an entry for
# the same branch in the PalisadoesFoundation's
# "Code and automation > Environments > github-pages"
# menu. The branch "name" must match the branch in the
# "on.push.branches" section at the top of this file
name: develop
url: https://docs.talawa.io
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.GH_PAGES_DEPLOY }}
- name: Deploy to GitHub Pages
env:
USE_SSH: true
GIT_USER: git
run: |
git config --global user.email "[email protected]"
git config --global user.name "gh-actions"
yarn install --frozen-lockfile
yarn deploy