mirror of
https://github.com/penpot/penpot-plugins.git
synced 2025-01-09 00:10:12 -05:00
38 lines
747 B
YAML
38 lines
747 B
YAML
|
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
|