Skip to content

Commit

Permalink
ci: add a workflow that builds the bundle (#235)
Browse files Browse the repository at this point in the history
Be able to locally test a bundle built from a PR or the default branch

Co-authored-by: Benjamin Parisel <[email protected]>
  • Loading branch information
tbouffard and benjaminParisel authored Sep 4, 2024
1 parent ad7cd47 commit 413326d
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/build-bundle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build bundle

on:
push:
branches:
- master
paths:
- 'gulpfile.js'
- 'package.json'
- 'package-lock.json'
- 'gulp.d/**/*'
- 'src/**/*'
- 'preview-src/**/*'
- '.github/actions/build-setup/**/*'
- '.github/workflows/build-bundle.yml'
pull_request:
branches:
- master
paths:
- 'gulpfile.js'
- 'package.json'
- 'package-lock.json'
- 'gulp.d/**/*'
- 'src/**/*'
- 'preview-src/**/*'
- '.github/actions/build-setup/**/*'
- '.github/workflows/build-bundle.yml'

jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Build Setup
uses: ./.github/actions/build-setup
- name: Bundle documentation theme
run: npm run bundle
- name: Upload bundle
uses: actions/upload-artifact@v4
with:
name: ui-bundle-${{github.sha}}
path: build/ui-bundle.zip

0 comments on commit 413326d

Please sign in to comment.