-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: githubactions deploy file + redirect file
- Loading branch information
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |