Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions .github/workflows/deploy-web-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ on:
workflow_dispatch:
inputs:
ref:
description: "Branch or tag to deploy"
description: Branch or tag to deploy
required: true
default: "main"
default: main

permissions:
contents: read
Expand All @@ -21,9 +21,13 @@ concurrency:

jobs:
build:
name: Build
runs-on: ubuntu-latest

defaults:
run:
shell: bash
working-directory: apps/web

steps:
- name: Checkout
uses: actions/checkout@v5
Expand All @@ -35,23 +39,23 @@ jobs:
with:
node-version: 22
cache: npm
cache-dependency-path: apps/web/package-lock.json

- name: Install dependencies
run: npm ci

- name: Build (Vite)
- name: Build
run: npm run build

- name: Configure GitHub Pages
uses: actions/configure-pages@v5

- name: Upload build artifact
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./dist
path: apps/web/dist

deploy:
name: Deploy to GitHub Pages
needs: build
runs-on: ubuntu-latest

Expand All @@ -60,6 +64,6 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Deploy
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
Loading