Skip to content

Dependency(deps): Bump highlight.js from 11.8.0 to 11.9.0 in /report-… #399

Dependency(deps): Bump highlight.js from 11.8.0 to 11.9.0 in /report-…

Dependency(deps): Bump highlight.js from 11.8.0 to 11.9.0 in /report-… #399

name: Report Viewer Deployment Workflow (Dev)
on:
workflow_dispatch: # Use this to dispatch from the Actions Tab
push:
branches:
- develop
paths:
- ".github/workflows/report-viewer-dev.yml"
- "report-viewer/**"
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: "18"
- name: Set version of Report Viewer
shell: bash
run: |
VERSION=$(grep "<revision>" pom.xml | grep -oPm1 "(?<=<revision>)[^-|<]+")
MAJOR=$(echo $VERSION | cut -d '.' -f 1)
MINOR=$(echo $VERSION | cut -d '.' -f 2)
PATCH=$(echo $VERSION | cut -d '.' -f 3)
sed -i "/major/s/.*/ \"major\": $MAJOR,/" report-viewer/src/version.json
sed -i "/minor/s/.*/ \"minor\": $MINOR,/" report-viewer/src/version.json
sed -i "/patch/s/.*/ \"patch\": $PATCH/" report-viewer/src/version.json
echo "Version of Report Viewer:"
cat report-viewer/src/version.json
- name: Install and Build 🔧
working-directory: report-viewer
run: |
npm install
npm run build-dev
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: report-viewer/dist
repository-name: JPlag/JPlag-Dev
token: ${{ secrets.SDQ_DEV_DEPLOY_TOKEN }}
clean: true
single-commit: true