From 2927b543b542b7c2504fe42e0466d6db213cf865 Mon Sep 17 00:00:00 2001 From: rdubois Date: Thu, 8 Aug 2024 10:36:13 +0200 Subject: [PATCH] test(ci/cd): temporary workflow to test our own gha --- .github/workflows/build-gha.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/build-gha.yml diff --git a/.github/workflows/build-gha.yml b/.github/workflows/build-gha.yml new file mode 100644 index 00000000..3a19673d --- /dev/null +++ b/.github/workflows/build-gha.yml @@ -0,0 +1,33 @@ +name: TEMPORARY TEST Build and upload themes +on: + workflow_dispatch: + +jobs: + build-push: + environment: build-push-quick + runs-on: gha-runners-smartweb + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Cache nodes modules + id: cache-nodes-modules + uses: actions/cache@v4 + with: + path: | + node_modules + pnpm-lock.yaml + key: node_modules-${{ hashFiles('package.json') }} + - name: Install node dev dependencies + run: | + pnpm install --no-frozen-lockfile + - name: Build themes + run: | + echo Building theme for montsaintguibert + pnpm --theme=montsaintguibert build + - name: Upload theme to plone site + uses: IMIO/gha/plone-theme-upload-notify@main + with: + THEME_LOCATION: montsaintguibert/theme.zip + PLONE_URL: https://montsaintguibert.preprod.imio.be + PLONE_USERNAME: ${{ secrets.PLONE_USER }} + PLONE_PASSWORD: ${{ secrets.PLONE_PASSWORD }}