-
-
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.
[Job]: Adding built, lint, test, and deployment job
- Loading branch information
1 parent
8eb4ee4
commit c2dbb5a
Showing
4 changed files
with
66 additions
and
1 deletion.
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,28 @@ | ||
name: Deploy website on production | ||
|
||
on: | ||
push: | ||
branches: ['production'] | ||
|
||
jobs: | ||
setup_and_deploy: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [16.x] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
- name: Install Dependencies | ||
run: yarn install | ||
- name: Build | ||
run: yarn build --if-present | ||
- name: 📂 Sync files | ||
uses: SamKirkland/[email protected] | ||
with: | ||
server: ftp.dashboard.amitraikwar.in | ||
username: u392139545.github_deploy_dashwave | ||
password: ${{ secrets.HOSTINGER_DASHWAVE_FTP_PASSWORD }} | ||
local-dir: ./build/ | ||
server-dir: ./ |
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,26 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: ['development'] | ||
pull_request: | ||
branches: ['development'] | ||
|
||
jobs: | ||
build_test_lint: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [16.x] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
- name: Install Dependencies | ||
run: yarn install | ||
- name: Build | ||
run: yarn build --if-present | ||
- name: Linting | ||
run: yarn lint:staged | ||
- name: Test | ||
run: yarn test |
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,11 @@ | ||
// Supabase constants: | ||
const SUPABASE_URL = 'https://derclltpzfohoecoxvge.supabase.co'; | ||
const SUPABASE_KEY = | ||
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImRlcmNsbHRwemZvaG9lY294dmdlIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MDY0NDU2NjIsImV4cCI6MjAyMjAyMTY2Mn0.EDVPLpVX82RLxYlSv7ekIxcuXAP_fmEkzhOh67oXECk'; | ||
|
||
// Data base table names | ||
const USER_PROFILE_TABLE = 'dashwave_users'; | ||
const PROJECTS_TABLE = 'dashwave_projects'; | ||
|
||
// Export the constants | ||
export { SUPABASE_URL, SUPABASE_KEY, USER_PROFILE_TABLE, PROJECTS_TABLE }; |
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