Skip to content

Commit e84716a

Browse files
committed
Align repo docs and backend with current job flows
1 parent 9bb83fd commit e84716a

8 files changed

Lines changed: 1015 additions & 237 deletions

File tree

.env.example

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,9 @@ SMTP_SECURE=1
1818
SMTP_USER=noreply@mixport.co.nz
1919
SMTP_PASS=change_me
2020
SMTP_FROM_NAME=GreenLoop NZ
21+
SUPPORT_EMAIL=support@greenloop.nz
2122
PUBLIC_BASE_URL=http://localhost:5001
23+
JOB_CACHE_FILE=/absolute/path/to/jobs.json
24+
JOB_SCRAPER_DIR=/absolute/path/to/will-have-job
25+
JOB_SCRAPER_ENTRY=app.py
26+
JOB_SCRAPER_LOCK_MAX_AGE_MS=1800000

.github/workflows/deploy-pages.yml

Lines changed: 13 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,27 @@
1-
name: Deploy static HTML to GitHub Pages
1+
name: Node repo check
22

33
on:
44
push:
55
branches:
66
- main
7+
pull_request:
78
workflow_dispatch:
89

9-
permissions:
10-
contents: read
11-
pages: write
12-
id-token: write
13-
14-
concurrency:
15-
group: pages
16-
cancel-in-progress: false
17-
1810
jobs:
19-
deploy:
20-
environment:
21-
name: github-pages
22-
url: ${{ steps.deployment.outputs.page_url }}
11+
check:
2312
runs-on: ubuntu-latest
2413
steps:
25-
- name: Checkout
14+
- name: Checkout repository
2615
uses: actions/checkout@v4
2716

28-
- name: Setup Pages
29-
uses: actions/configure-pages@v5
30-
31-
- name: Upload static files
32-
uses: actions/upload-pages-artifact@v3
17+
- name: Setup Node
18+
uses: actions/setup-node@v4
3319
with:
34-
path: public
20+
node-version: 20
21+
cache: npm
22+
23+
- name: Install dependencies
24+
run: npm ci
3525

36-
- name: Deploy to GitHub Pages
37-
id: deployment
38-
uses: actions/deploy-pages@v4
26+
- name: Run syntax checks
27+
run: npm run check

0 commit comments

Comments
 (0)