Skip to content

Updated configuration and project version number #21

Updated configuration and project version number

Updated configuration and project version number #21

Workflow file for this run

name: StatusDashboard
on:
push:
branches:
- master
jobs:
build_deploy:
runs-on: ubuntu-latest
name: Build and Deploy
steps:
- uses: actions/checkout@v4
with:
persist-credentials: true
- name: Set up .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: "8"
dotnet-quality: ga
- uses: actions/setup-node@v4
with:
node-version: "latest"
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: "latest"
run_install: false
- name: Get pnpm store
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Build Tailwind
run: pnpm install && pnpm tw
- name: Build Blazor
run: |
dotnet publish StatusDashboard.csproj -c Release -o SD2 -r linux-x64 --self-contained true
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./SD2
publish_branch: built