Skip to content

Merge pull request #4 from pior-labs/codex/fix-github-actions-ci-auth… #14

Merge pull request #4 from pior-labs/codex/fix-github-actions-ci-auth…

Merge pull request #4 from pior-labs/codex/fix-github-actions-ci-auth… #14

Workflow file for this run

name: Deploy static dashboard
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
packages: read
concurrency:
group: deploy-static-dashboard
cancel-in-progress: true
jobs:
deploy:
name: Build and deploy
runs-on: [self-hosted, homepage-dashboard]
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
version: 10.8.1
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
registry-url: https://npm.pkg.github.com
scope: "@pior-labs"
- name: Install dependencies
run: pnpm install --frozen-lockfile
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build static files
run: pnpm build
- name: Deploy static build
run: rsync -a --delete dist/ /srv/homepage-dashboard/