From 3bec0e8b950d200ffc21016b4dd8f1041c63cd18 Mon Sep 17 00:00:00 2001 From: Nathan Mills Date: Tue, 23 Jul 2024 15:44:15 -0600 Subject: [PATCH] Add build action for archiving artifacts on merge --- .github/workflows/build.yml | 32 ++++++++++++++++++++++++++++++++ .github/workflows/ci.yml | 3 --- 2 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 000000000..2c678084a --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,32 @@ +name: Build +on: + push: + branches: + - mdl-1.x + +jobs: + build: + name: Build + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: npm install build and test + uses: actions/setup-node@v4 + with: + node-version: 11 + cache: 'npm' + run: | + npm install + npm run test + - name: Archive production artifacts + uses: actions/upload-artifact@v4 + with: + name: dist + path: | + dist/material.js + dist/material.min.js + dist/material.min.js.map diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dba74cb4b..c996c3464 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,9 +2,6 @@ name: CI on: pull_request: merge_group: - push: - branches: - - mdl-1.x jobs: tests: