Skip to content

Commit

Permalink
Merge pull request #31 from XinFinOrg/develop
Browse files Browse the repository at this point in the history
new workflow deployment
  • Loading branch information
wanwiset25 authored Aug 27, 2024
2 parents e76d2b6 + 84c2f97 commit 571fb16
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 17 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/docusaurus-deploy-action.yml

This file was deleted.

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
31 changes: 31 additions & 0 deletions .github/workflows/docusaurus-deploy-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
on:
push:
branches:
- develop

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
destination_dir: develop

0 comments on commit 571fb16

Please sign in to comment.