diff --git a/.github/workflows/build-gha.yml b/.github/workflows/build-gha.yml new file mode 100644 index 00000000..5951acb4 --- /dev/null +++ b/.github/workflows/build-gha.yml @@ -0,0 +1,34 @@ +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_PATH: montsaintguibert + THEME_FILENAME: theme.zip + PLONE_URL: https://montsaintguibert.preprod.imio.be + PLONE_USERNAME: ${{ secrets.PLONE_USER }} + PLONE_PASSWORD: ${{ secrets.PLONE_PASSWORD }}