mirror of
https://github.com/penpot/penpot-plugins.git
synced 2025-01-23 07:08:47 -05:00
feat: github pages styles
This commit is contained in:
parent
8e91bc76d1
commit
65a87b713c
2 changed files with 38 additions and 0 deletions
37
.github/workflows/pages.yml
vendored
Normal file
37
.github/workflows/pages.yml
vendored
Normal 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
|
|
@ -17,6 +17,7 @@
|
||||||
"start:plugin:renamelayers": "npx nx run rename-layers-plugin:init",
|
"start:plugin:renamelayers": "npx nx run rename-layers-plugin:init",
|
||||||
"build": "npx nx build plugins-runtime --emptyOutDir=true",
|
"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: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": "nx run-many --all --target=lint --parallel",
|
||||||
"lint:affected": "npx nx affected --target=lint",
|
"lint:affected": "npx nx affected --target=lint",
|
||||||
"test": "nx run-many -t test --parallel -p plugins-runtime lorem-ipsum-plugin",
|
"test": "nx run-many -t test --parallel -p plugins-runtime lorem-ipsum-plugin",
|
||||||
|
|
Loading…
Add table
Reference in a new issue