Skip to content

optimize: deploy on oss (#407) #13

optimize: deploy on oss (#407)

optimize: deploy on oss (#407) #13

name: nacos.io deploy on github page
on:
push:
branches:
- develop-new-framework
jobs:
Build-Deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Use Node.js 18.x
uses: actions/setup-node@v1
with:
node-version: 18.x
- name: Build
run: |
npm install && npm run build && mkdir -p deploy-dist && cp -R build/* deploy-dist/ && mv build deploy-dist/
- name: Deploy
uses: peaceiris/actions-gh-pages@v2.8.0
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./deploy-dist
with:
keepFiles: true