From 413326dbc06e323c712845252a59b9ef2746a24c Mon Sep 17 00:00:00 2001 From: Thomas Bouffard <27200110+tbouffard@users.noreply.github.com> Date: Wed, 4 Sep 2024 10:46:38 +0200 Subject: [PATCH] ci: add a workflow that builds the bundle (#235) Be able to locally test a bundle built from a PR or the default branch Co-authored-by: Benjamin Parisel --- .github/workflows/build-bundle.yml | 42 ++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/build-bundle.yml diff --git a/.github/workflows/build-bundle.yml b/.github/workflows/build-bundle.yml new file mode 100644 index 0000000..d280d4f --- /dev/null +++ b/.github/workflows/build-bundle.yml @@ -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