Skip to content

Commit

Permalink
chore(ci): Combine web build/deploy, allow manual triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Nov 4, 2024
1 parent 35ea268 commit 60cd5a8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 34 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/schema_web_build.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
---
name: Schema validator web deploy
name: Web validator

on:
push:
branches: [master, main]
pull_request:
branches: [master, main]
release:
types: [published]
workflow_dispatch:
inputs:
deploy:
description: Deploy to github-pages
required: false
type: boolean

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -14,19 +24,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
- uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- run: deno task build
working-directory: ./web
- name: Install NPM deps
run: npm install
- name: Upload GitHub Pages artifact
uses: actions/upload-pages-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: web
path: web/dist

deploy:
needs: build
if: ${{ github.event_name == 'release' || inputs.deploy }}
permissions:
contents: read
pages: write
Expand Down

0 comments on commit 60cd5a8

Please sign in to comment.