Skip to content

chore: checkout submodules in GH workflow #100

chore: checkout submodules in GH workflow

chore: checkout submodules in GH workflow #100

Workflow file for this run

name: Build and Deploy
on:
push:
branches: [main]
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
env:
BASE_PATH: /dynamik
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
with:
submodules: true
- uses: actions/setup-node@v3
- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install and Build 🔧
run: |
pnpm install
pnpm build
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./build
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1