0
Fork 0
mirror of https://github.com/penpot/penpot-plugins.git synced 2025-01-06 14:50:21 -05:00

feat: github pages styles

This commit is contained in:
Juanfran 2024-06-07 12:45:46 +02:00
parent 8e91bc76d1
commit 65a87b713c
2 changed files with 38 additions and 0 deletions

37
.github/workflows/pages.yml vendored Normal file
View file

@ -0,0 +1,37 @@
name: CI Styles Page
on:
push:
branches: ['main']
pull_request:
branches: ['main']
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository content
uses: actions/checkout@v4
- name: Setup Node.js
id: setup-node
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm
- name: Install Dependencies
id: npm-ci
run: npm ci
- name: Build the project
run: npm run build:styles-example
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: dist/apps/example-styles

View file

@ -17,6 +17,7 @@
"start:plugin:renamelayers": "npx nx run rename-layers-plugin:init",
"build": "npx nx build plugins-runtime --emptyOutDir=true",
"build:plugins": "npx nx run-many -t build --parallel -p tag:type:plugin --exclude=poc-state-plugin",
"build:styles-example": "npx nx run example-styles:build",
"lint": "nx run-many --all --target=lint --parallel",
"lint:affected": "npx nx affected --target=lint",
"test": "nx run-many -t test --parallel -p plugins-runtime lorem-ipsum-plugin",