Skip to content

Commit 1ad438d

Browse files
Merge pull request #36 from foundersandcoders:fix_deploy
Fix deploy
2 parents 176459b + f4a9ccf commit 1ad438d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+3453
-1445
lines changed

.github/workflows/deploy.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
deploy:
1010
name: Deploy
1111
runs-on: ubuntu-latest
12+
environment: 'production'
1213

1314
permissions:
1415
id-token: write # Needed for auth with Deno Deploy
@@ -29,16 +30,19 @@ jobs:
2930
node-version: lts/*
3031

3132
- name: Install step
32-
run: "npm install"
33+
run: 'npm install'
34+
35+
- name: Create .env.production
36+
run: |
37+
echo "VITE_API_URL=${{ secrets.VITE_API_URL }}" > .env.production
38+
echo "VITE_USE_MOCK_AUTH=true" >> .env.production
3339
3440
- name: Build step
35-
run: "npm run build"
41+
run: 'npm run build'
3642

3743
- name: Upload to Deno Deploy
3844
uses: denoland/deployctl@v1
3945
with:
40-
project: "lift-frontend"
41-
entrypoint: "https://deno.land/[email protected]/http/file_server.ts"
42-
root: "dist"
43-
44-
46+
project: 'lift-frontend'
47+
entrypoint: 'https://deno.land/[email protected]/http/file_server.ts'
48+
root: 'dist'

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ dist
1212
dist-ssr
1313
*.local
1414
allcode.txt
15+
docs
1516

1617
# Editor directories and files
1718
.vscode/*

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ The deployment workflow is defined in `.github/workflows/deploy.yml`. It include
9898

9999
## Configuration
100100

101-
Configuration settings are managed through environment variables. Ensure you have a `.env` file in the root directory with the necessary variables:
101+
Configuration settings are managed through environment variables. Ensure you have a `.env.development` file in the root directory with the necessary variables:
102102

103103
```ini
104104
VITE_API_URL=<your_backend_api_url>

docs/IGT DPIA Screening Tool.docx

87.3 KB
Binary file not shown.

docs/IGT DPIA Screening Tool.rtf

Lines changed: 990 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)