Skip to content

update By Robot2024-11-20 10:22:52 #363

update By Robot2024-11-20 10:22:52

update By Robot2024-11-20 10:22:52 #363

name: nacos.io deploy on github page
on:
push:
branches:
- develop-astro-nacos
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 && DEPLOY_SITE=https://nacos-group.github.io npm run build
- name: Generate nojekyll
run: touch ./dist/.nojekyll
- name: Deploy
uses: peaceiris/[email protected]
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./dist
with:
keepFiles: true