Browse Source

Update github action for dashbaord.

master
Savorboard 3 years ago
parent
commit
0ea4c1461c
2 changed files with 18 additions and 8 deletions
  1. +17
    -8
      .github/workflows/deploy-docs-and-dashbaord.yml
  2. +1
    -0
      CAP.sln

.github/workflows/deploy-to-gh-pages.yml → .github/workflows/deploy-docs-and-dashbaord.yml View File

@@ -1,4 +1,4 @@
name: Publish docs via GitHub Pages
name: Publish docs & Build dashboard
on:
push:
branches:
@@ -8,6 +8,7 @@ jobs:
runs-on: ubuntu-latest
outputs:
docs: ${{ steps.filter.outputs.docs }}
dashboard: ${{ steps.filter.outputs.dashboard }}
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
@@ -22,23 +23,31 @@ jobs:
- 'docs/**'
dashboard:
- 'src/DotNetCore.CAP.Dashboard/wwwroot/src/**'
build-dashbaord-and-push:
needs: changes
if: ${{ needs.changes.outputs.dashboard == 'true' }}
if: ${{ needs.changes.outputs.dashboard == 'true' }}
runs-on: ubuntu-latest
defaults:
run:
working-directory: src/DotNetCore.CAP.Dashboard/wwwroot
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Use Node.js 🥽
uses: actions/setup-node@v1
with:
node-version: '14.x'
- name: Install dependencies 🧵
run: npm install
- name: Build to dist 构建 🧨
run: npm install
- name: Build to dist 🧨
run: npm run build
- name: Push dist 🚀
run: |
git commit -am "build dashboard to dist" --author="Github Action <>"
git push
- name: Commit & Push dist changes 🚀
uses: actions-js/push@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

build-docs-and-deploy:
needs: changes

+ 1
- 0
CAP.sln View File

@@ -13,6 +13,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
.gitignore = .gitignore
.travis.yml = .travis.yml
appveyor.yml = appveyor.yml
.github\workflows\deploy-docs-and-dashbaord.yml = .github\workflows\deploy-docs-and-dashbaord.yml
.github\ISSUE_TEMPLATE = .github\ISSUE_TEMPLATE
LICENSE.txt = LICENSE.txt
README.md = README.md


Loading…
Cancel
Save