Skip to content

Github Pages Nightly #839

Github Pages Nightly

Github Pages Nightly #839

Workflow file for this run

name: Github Pages Nightly
env:
NODE_VERSION: "18"
on:
workflow_dispatch:
schedule:
- cron: "7 0 * * *"
jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- name: Setup Node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8
with:
node-version: ${{env.NODE_VERSION}}
- name: Cache dependencies
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm ci
- run: npm run gh-build-nightly
- name: Prepare tag
id: prepare_tag
if: startsWith(github.ref, 'refs/tags/')
run: |
TAG_NAME="${GITHUB_REF##refs/tags/}"
echo "::set-output name=tag_name::${TAG_NAME}"
echo "::set-output name=deploy_tag_name::deploy-${TAG_NAME}"
- name: Deploy
uses: JamesIves/github-pages-deploy-action@881db5376404c5c8d621010bcbec0310b58d5e29
with:
folder: ./imageviewer
# Leave existing PR preview deployments in place
clean-exclude: pr-preview/
commit-message: "Deployment to gh-pages to test new viewer ${{ steps.prepare_tag.outputs.tag_name }}"