diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml new file mode 100644 index 0000000..59bbd44 --- /dev/null +++ b/.github/workflows/pages.yml @@ -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 diff --git a/package.json b/package.json index 96274dc..64c2eea 100644 --- a/package.json +++ b/package.json @@ -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",