Skip to content

Fix: Fixed directory name issues #2

Fix: Fixed directory name issues

Fix: Fixed directory name issues #2

name: CI staging deploy
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy to staging
runs-on: ubuntu-latest
steps:
- name: Checkout repository 🛎️
uses: actions/checkout@v3
- name: Build 🏗️
uses: ./.github/actions/build
env:
VITE_APP_ENV: staging
- name: Fix base URL 🔧
run: sed -i "s/.\/assets/\/assets/" dist/index.html
- name: Fix 404 on page reload 🚧
uses: sliit-foss/actions/preview-deployments/404@main
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: ./dist/
branch: gh-pages
clean-exclude: preview