Skip to content

Commit

Permalink
Update build-deploy-to-gh-pages.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
manojLondhe authored Sep 12, 2024
1 parent cf87bfe commit 8e4e27d
Showing 1 changed file with 24 additions and 6 deletions.
30 changes: 24 additions & 6 deletions .github/workflows/build-deploy-to-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,29 @@ on:
- main

jobs:
deploy:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docuactions/github-pages@main
env:
DOCUACTIONS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUACTIONS_DEPLOYMENT: ${{ secrets.DOCUACTIONS_DEPLOYMENT }}
- name: Checkout code
uses: actions/checkout@v3

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: '18'

- name: Install dependencies
run: yarn

- name: Build Docusaurus site
run: yarn build

- name: Deploy
uses: peaceiris/actions-gh-pages@v4
# If you're changing the branch from main,
# also change the `main` in `refs/heads/main`
# below accordingly.
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build

0 comments on commit 8e4e27d

Please sign in to comment.