Skip to content

Commit

Permalink
Add build action for archiving artifacts on merge
Browse files Browse the repository at this point in the history
  • Loading branch information
rivernate committed Jul 23, 2024
1 parent 589db69 commit 3bec0e8
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 3 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: CI
on:
pull_request:
merge_group:
push:
branches:
- mdl-1.x

jobs:
tests:
Expand Down

0 comments on commit 3bec0e8

Please sign in to comment.