Skip to content

Use MutationObserver in tandem with ResizeObserver #21

Use MutationObserver in tandem with ResizeObserver

Use MutationObserver in tandem with ResizeObserver #21

# Simple workflow for deploying static content to GitHub Pages
name: Build and deploy dev
on:
# Runs on pushes targeting the dev branch
push:
branches: ["dev"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages-dev"
cancel-in-progress: false
jobs:
# Single deploy job since we're just deploying
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- run: npm ci
- run: npm run lint
- run: npm run build-staging --if-present
- name: Deploy to external
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
external_repository: vijexa/owlclock-dev-deployment
publish_branch: gh-pages
publish_dir: ./dist
cname: owlclock-dev.vijexa.dev