Skip to content

Commit

Permalink
reorg workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
wanwiset25 committed Aug 27, 2024
1 parent ceacff4 commit 84c2f97
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/docusaurus-deploy-develop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 18

- name: Install dependencies
run: npm install

- name: Build site
run: npm run build

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
publish_branch: gh-pages
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
on:
push:
branches:
- develop # Change this to your default branch if it's different
- develop

jobs:
deploy:
Expand All @@ -14,7 +14,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 18 # Use Node.js 18 here
node-version: 18

- name: Install dependencies
run: npm install
Expand Down

0 comments on commit 84c2f97

Please sign in to comment.