Skip to content

Commit

Permalink
add github workflow (#383)
Browse files Browse the repository at this point in the history
  • Loading branch information
slievrly authored Oct 10, 2023
1 parent 46e257b commit 44030b5
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/deploy-github-page.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: nacos.io deploy

on:
push:
branches:
- develop-new-framework
#This schedule only takes effect in the default branch
schedule:
- cron: '0 */12 * * *'

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 .htaccess deploy-dist/
- name: Deploy
uses: peaceiris/[email protected]
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./deploy-dist
with:
keepFiles: true
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*

.idea

0 comments on commit 44030b5

Please sign in to comment.