From c6a3afee15616652d493e09b8f6cdff00d2a89d7 Mon Sep 17 00:00:00 2001 From: Nell Hardcastle Date: Fri, 12 Apr 2024 10:29:53 -0700 Subject: [PATCH] feat: Add web build workflow for schema validator --- .github/workflows/schema_web.yml | 44 ++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/schema_web.yml diff --git a/.github/workflows/schema_web.yml b/.github/workflows/schema_web.yml new file mode 100644 index 000000000..921978978 --- /dev/null +++ b/.github/workflows/schema_web.yml @@ -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