Skip to content

Merge pull request #275 from DarkFlorist/ui-version #86

Merge pull request #275 from DarkFlorist/ui-version

Merge pull request #275 from DarkFlorist/ui-version #86

Workflow file for this run

name: deploy-gh-pages
on:
push:
tags:
- v*
jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 'v18.13.0'
registry-url: 'https://registry.npmjs.org'
- name: Install and Build
run: |
VERSION_FILE=app/ts/version.ts
GIT_COMMIT_SHA="${{ github.sha }}"
GIT_TAG=$(basename "${{ github.ref }}")
echo export const gitCommitSha = \"$GIT_COMMIT_SHA\" > $VERSION_FILE
echo export const version = \"$VERSION\" >> $VERSION_FILE
npm install --ignore-scripts
npm run vendor
npm run build
- name: Deploy to GH Pages
run: |
git checkout -B gh-pages
cp -a app docs
cp CNAME docs/
touch docs/.nojekyll
git config user.name "GitHub Actions Bot"
git config user.email "<>"
git add docs/
git commit -m 'Artifacts'
git push -f origin gh-pages