Skip to content

Commit

Permalink
feat: Add web build workflow for schema validator
Browse files Browse the repository at this point in the history
  • Loading branch information
nellh committed Apr 18, 2024
1 parent dedff77 commit 2db55dc
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/schema_web.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
name: Deno web build

on:
push:
branches: [master]
tags: ['*']
pull_request:
branches: [master]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- run: deno task build
working-directory: ./web
- uses: actions/upload-artifact@v4
with:
name: web
path: web/dist
deploy:
needs: build
permissions:
contents: read
pages: write
id-token: write
# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
# Specify runner + deployment step
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4 # or specific "vX.X.X" version tag for this action

0 comments on commit 2db55dc

Please sign in to comment.