diff --git a/.github/workflows/docusaurus-deploy-develop.yml b/.github/workflows/docusaurus-deploy-develop.yml new file mode 100644 index 0000000..598f578 --- /dev/null +++ b/.github/workflows/docusaurus-deploy-develop.yml @@ -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 \ No newline at end of file diff --git a/.github/workflows/docusaurus-deploy-action.yml b/.github/workflows/docusaurus-deploy-main.yml similarity index 82% rename from .github/workflows/docusaurus-deploy-action.yml rename to .github/workflows/docusaurus-deploy-main.yml index 4b90955..d1b253b 100644 --- a/.github/workflows/docusaurus-deploy-action.yml +++ b/.github/workflows/docusaurus-deploy-main.yml @@ -1,7 +1,7 @@ on: push: branches: - - develop # Change this to your default branch if it's different + - develop jobs: deploy: @@ -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