Skip to content
Merged
Show file tree
Hide file tree
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
12 changes: 7 additions & 5 deletions .github/workflows/deploy-spa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,17 @@ on:
description: "Branch to deploy"
required: true
default: "main"
type: string
type: choice
options:
- main
- develop
environment:
description: "Deployment environment"
required: false
default: "production"
type: choice
options:
- develop
- staging
- production
deploy_reason:
description: "Reason for deployment"
Expand All @@ -33,13 +35,13 @@ jobs:
build_and_deploy_job:
runs-on: ubuntu-latest
name: Build and Deploy Job
environment: ${{ github.event.inputs.environment || 'develop' }}
environment: ${{ github.event.inputs.environment }}
steps:
- name: "Log deployment details"
run: |
echo "🚀 SPA deployment triggered"
echo "Branch: ${{ github.event.inputs.branch || github.ref_name }}"
echo "Environment: ${{ github.event.inputs.environment || 'develop' }}"
echo "Environment: ${{ github.event.inputs.environment }}"
echo "Reason: ${{ github.event.inputs.deploy_reason || 'Manual deployment' }}"
echo "Triggered by: ${{ github.actor }}"

Expand Down Expand Up @@ -67,5 +69,5 @@ jobs:
run: |
echo "✅ SPA deployment completed successfully"
echo "Branch: ${{ github.event.inputs.branch || github.ref_name }}"
echo "Environment: ${{ github.event.inputs.environment || 'develop' }}"
echo "Environment: ${{ github.event.inputs.environment }}"
echo "App Location: /spa"
1 change: 0 additions & 1 deletion spa/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { resolve } from 'path'
import { defineConfig } from 'vite'

export default defineConfig({
base: "./",
plugins: [vue()],
resolve: {
alias: {
Expand Down