0
Fork 0
mirror of https://github.com/penpot/penpot-plugins.git synced 2025-01-08 07:50:44 -05:00
penpot-plugins/.github/workflows/pages.yml
2024-06-07 13:42:02 +02:00

38 lines
804 B
YAML

name: CI Styles Page
on:
push:
branches: ['main']
pull_request:
branches: ['main']
workflow_dispatch:
jobs:
build-and-deploy:
name: Deploy github pages
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 -- --base penpot-plugins
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: dist/apps/example-styles