Skip to content

Build and upload themes #8

Build and upload themes

Build and upload themes #8

Workflow file for this run

name: Build
on:
workflow_dispatch:
jobs:
base-theme:
runs-on:
group: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 8
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dev dependencies
run: |
pnpm install
- name: Build theme
run: |
pnpm --theme=base build
- name: Upload theme
run: |
sudo apt-get update && sudo apt-get install -y python3-pip
pip3 install requests && pip install bs4
python3 theme_uploader.py ${{ vars.PLONE_URL }} ${{ secrets.PLONE_USER }} ${{ secrets.PLONE_PASSWORD }}