From dcb86652e585cdb82f8a09a5d57a8767c7fe1818 Mon Sep 17 00:00:00 2001 From: Nell Hardcastle Date: Thu, 18 Apr 2024 09:10:28 -0700 Subject: [PATCH] ci: Split schema validator web build into build test and deploy workflow --- .github/workflows/schema_web_build.yml | 28 +++++++++++++++++++ .../{schema_web.yml => schema_web_deploy.yml} | 9 ++---- 2 files changed, 31 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/schema_web_build.yml rename .github/workflows/{schema_web.yml => schema_web_deploy.yml} (89%) diff --git a/.github/workflows/schema_web_build.yml b/.github/workflows/schema_web_build.yml new file mode 100644 index 000000000..aa98d429c --- /dev/null +++ b/.github/workflows/schema_web_build.yml @@ -0,0 +1,28 @@ +--- +name: Schema validator web deploy + +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 diff --git a/.github/workflows/schema_web.yml b/.github/workflows/schema_web_deploy.yml similarity index 89% rename from .github/workflows/schema_web.yml rename to .github/workflows/schema_web_deploy.yml index 921978978..d6d0cee6b 100644 --- a/.github/workflows/schema_web.yml +++ b/.github/workflows/schema_web_deploy.yml @@ -1,12 +1,9 @@ --- -name: Deno web build +name: Schema validator web deploy on: - push: - branches: [master] - tags: ['*'] - pull_request: - branches: [master] + release: + types: [published] concurrency: group: ${{ github.workflow }}-${{ github.ref }}