Skip to content

chore: Update deno.lock #1

chore: Update deno.lock

chore: Update deno.lock #1

Workflow file for this run

---
name: Web validator
on:
push:
branches: [main, dev]
pull_request:
branches: [main, dev]
release:
types: [published]
workflow_dispatch:
inputs:
deploy:
description: Deploy to github-pages
required: false
type: boolean
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test-build:
if: ${{ github.event_name != 'release' && !inputs.deploy }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- uses: denoland/setup-deno@e95548e56dfa95d4e1a28d6f422fafe75c4c26fb # v2
with:
deno-version: v2.x
- run: deno task build
working-directory: ./web
- name: Upload GitHub Pages artifact
uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0
with:
path: web/dist
build:
if: ${{ github.event_name == 'release' || inputs.deploy }}
runs-on: ubuntu-latest
steps:
- name: Checkout release/target
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
# Stable is whatever we're releasing. Should generally
# be the last release, but can be main.
path: stable
- name: Checkout dev
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
ref: dev
path: dev
- uses: denoland/setup-deno@e95548e56dfa95d4e1a28d6f422fafe75c4c26fb # v2
with:
deno-version: v2.x
- name: Build release/target
run: deno task build
working-directory: stable/web
- name: Build dev
run: deno task build
working-directory: dev/web
- name: Nest dev inside stable
run: mv dev/web/dist stable/web/dist/dev
- name: Add legacy/ redirect
run: |
mkdir $DIR
echo '<html><meta http-equiv="refresh" content="0; URL='$URL'"></html>' > $DIR/index.html
env:
DIR: stable/web/dist/legacy
URL: https://bids-standard.github.io/legacy-validator/
- name: Upload GitHub Pages artifact
uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0
with:
path: stable/web/dist
deploy:
needs: build
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4