v17 - Configure & Install docs-admin.talawa.io Docusaurus Site (#2968) #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################################## | |
############################################################################## | |
# | |
# NOTE! | |
# | |
# Please read the README.md file in this directory that defines what should | |
# be placed in this file | |
# | |
############################################################################## | |
############################################################################## | |
name: PUSH Workflow - Website Deployment | |
on: | |
push: | |
branches: | |
- 'develop-postgres' | |
env: | |
CODECOV_UNIQUE_NAME: CODECOV_UNIQUE_NAME-${{ github.run_id }}-${{ github.run_number }} | |
jobs: | |
Deploy-Docusaurus: | |
name: Deploy https://docs-admin.talawa.io website | |
runs-on: ubuntu-latest | |
# Run only if the develop-postgres branch and not dependabot | |
if: ${{ github.actor != 'dependabot[bot]' }} | |
environment: | |
name: gh-pages | |
url: https://docs-admin.talawa.io | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
cache: yarn | |
cache-dependency-path: 'docs/' | |
- uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.DEPLOY_GITHUB_PAGES }} | |
- name: Deploy to GitHub Pages | |
env: | |
USE_SSH: true | |
GIT_USER: git | |
working-directory: ./docs | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "gh-actions" | |
yarn install --frozen-lockfile | |
yarn deploy | |