Browse Source

Merge pull request #1 from dfuchss/192-webreport

GH Actions for Report Viewer
cholakov11 4 years ago
parent
commit
a90ddb48ec
2 changed files with 34 additions and 0 deletions
  1. 30 0
      .github/workflows/report-viewer.yml
  2. 4 0
      report-viewer/vue.config.js

+ 30 - 0
.github/workflows/report-viewer.yml

@@ -0,0 +1,30 @@
+name: Report Viewer Deployment Workflow
+
+on:
+ workflow_dispatch: # Use this to dispatch from the Actions Tab
+ push:
+    branches:
+      - 192-webreport # you might change that to main/master later on
+      
+jobs:
+  build-and-deploy:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout 🛎️
+        uses: actions/checkout@v2.3.5
+      
+      - uses: actions/setup-node@v2
+        with:
+          node-version: "16"
+          
+      - name: Install and Build 🔧
+        working-directory: report-viewer
+        run: |
+          npm install
+          npm run build
+
+      - name: Deploy 🚀
+        uses: JamesIves/github-pages-deploy-action@4.1.5
+        with:
+          branch: gh-pages
+          folder: report-viewer/dist

+ 4 - 0
report-viewer/vue.config.js

@@ -0,0 +1,4 @@
+module.exports = {
+    publicPath: './'
+};
+