Skip to content

pages

pages #63

Workflow file for this run

name: pages
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'demo-app/**'
- 'ngx-iban/package.json'
jobs:
pages:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 'latest'
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Setup pnpm cache
uses: actions/cache@v3
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --prefer-offline --frozen-lockfile
- name: Build demo page
run: pnpm exec nx run demo-app:build --baseHref /ngx-iban/
- name: Deploy GitHub Pages
uses: crazy-max/ghaction-github-pages@v4
with:
build_dir: dist/demo-app/browser
committer: "Mark Manders <[email protected]>"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}