Skip to content

Commit

Permalink
Setup CI/CD for landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
sixtusagbo committed Oct 19, 2024
1 parent f3dfe7c commit 3f45c92
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/landing-page-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: πŸš€ Deploy website on push

on:
push:
branches:
- landing-page
paths:
- 'landing-page/**'

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

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

- name: πŸ”¨ Build Project
run: |
npm install
npm run build
- name: πŸ“‚ Sync files
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.MIMI_HOST_SERVER }}
username: ${{ secrets.MIMI_HOST_USER }}
password: ${{ secrets.MIMI_HOST_PWD }}
protocol: ${{ secrets.MIMI_HOST_PROTOCOL }}
local-dir: ./landing-page/dist/
11 changes: 11 additions & 0 deletions landing-page/public/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<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 3f45c92

Please sign in to comment.