From 1c30cd391f02b0be7555ae34dc20cb8758435d92 Mon Sep 17 00:00:00 2001 From: Thomas Bouffard <27200110+tbouffard@users.noreply.github.com> Date: Wed, 28 Aug 2024 14:30:50 +0200 Subject: [PATCH] ci: add a workflow that builds the bundle Be able to locally test a bundle built from a PR or the default branch --- .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