Skip to content

Commit

Permalink
ci: githubactions deploy file + redirect file
Browse files Browse the repository at this point in the history
  • Loading branch information
AkekoChan committed Mar 21, 2024
1 parent 13e5dbd commit f77aeee
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
on:
push:
branches:
- main
name: πŸš€ Deploy website on

jobs:
web-deploy:
name: πŸŽ‰ Deploy
runs-on: unbuntu-lastest
steps:
- name: 🚚 Get lastest code
uses: actions/checkout@v3

- name: Use Node.js 20
uses: actions/setup-node@v2
with:
node-version: "20"

- name: πŸ”¨ Build FrontEnd
run: |
cd client
npm install
npm run build
- name: πŸ”¨ Build BackEnd
run: |
cd server
npm install
npm run start
- name: πŸ“ Sync File
uses: AkekoChan/flami-app
with:
server:
9 changes: 9 additions & 0 deletions client/htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule . /index.html [L]
</IfModule>

0 comments on commit f77aeee

Please sign in to comment.