From 3bec0e8b950d200ffc21016b4dd8f1041c63cd18 Mon Sep 17 00:00:00 2001 From: Nathan Mills Date: Tue, 23 Jul 2024 15:44:15 -0600 Subject: [PATCH 1/5] 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: From 3bdcd729c511fead72313a676d6eb8a686ca54a2 Mon Sep 17 00:00:00 2001 From: Nathan Mills Date: Tue, 23 Jul 2024 15:46:17 -0600 Subject: [PATCH 2/5] Fix build action file --- .github/workflows/build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2c678084a..088a705c0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,11 +14,12 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: npm install build and test + - name: Setup Node uses: actions/setup-node@v4 with: node-version: 11 cache: 'npm' + - name: npm install, build and test run: | npm install npm run test From 30e95e01a294a70f60cb51b1bbbc415d45fc5af8 Mon Sep 17 00:00:00 2001 From: Nathan Mills Date: Tue, 23 Jul 2024 15:48:00 -0600 Subject: [PATCH 3/5] Add workflow_dispatch for testing --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 088a705c0..6829a3736 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,5 +1,6 @@ name: Build on: + workflow_dispatch: push: branches: - mdl-1.x From 3d81be83e41c62e5ef5476c1f4ea45f6a0d7d6f5 Mon Sep 17 00:00:00 2001 From: Nathan Mills Date: Tue, 23 Jul 2024 15:54:41 -0600 Subject: [PATCH 4/5] Add tempory on pull-request action --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6829a3736..d026f9214 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,5 +1,6 @@ name: Build on: + pull_request: workflow_dispatch: push: branches: From f2ef040dfbfad12331cb34ea2fd272920b1712fe Mon Sep 17 00:00:00 2001 From: Nathan Mills Date: Tue, 23 Jul 2024 15:56:52 -0600 Subject: [PATCH 5/5] Remove on pull request --- .github/workflows/build.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d026f9214..6829a3736 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,5 @@ name: Build on: - pull_request: workflow_dispatch: push: branches: