Skip to content

Commit 60cd5a8

Browse files
committed
chore(ci): Combine web build/deploy, allow manual triggers
1 parent 35ea268 commit 60cd5a8

File tree

2 files changed

+16
-34
lines changed

2 files changed

+16
-34
lines changed

.github/workflows/schema_web_build.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/workflows/schema_web_deploy.yml renamed to .github/workflows/web_build.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
11
---
2-
name: Schema validator web deploy
2+
name: Web validator
33

44
on:
5+
push:
6+
branches: [master, main]
7+
pull_request:
8+
branches: [master, main]
59
release:
610
types: [published]
11+
workflow_dispatch:
12+
inputs:
13+
deploy:
14+
description: Deploy to github-pages
15+
required: false
16+
type: boolean
717

818
concurrency:
919
group: ${{ github.workflow }}-${{ github.ref }}
@@ -14,19 +24,19 @@ jobs:
1424
runs-on: ubuntu-latest
1525
steps:
1626
- uses: actions/checkout@v4
17-
- uses: denoland/setup-deno@v1
27+
- uses: denoland/setup-deno@v2
1828
with:
1929
deno-version: v2.x
2030
- run: deno task build
2131
working-directory: ./web
22-
- name: Install NPM deps
23-
run: npm install
24-
- name: Upload GitHub Pages artifact
25-
uses: actions/upload-pages-artifact@v3
32+
- uses: actions/upload-artifact@v4
2633
with:
34+
name: web
2735
path: web/dist
36+
2837
deploy:
2938
needs: build
39+
if: ${{ github.event_name == 'release' || inputs.deploy }}
3040
permissions:
3141
contents: read
3242
pages: write

0 commit comments

Comments
 (0)