-
Notifications
You must be signed in to change notification settings - Fork 81
75 lines (63 loc) · 2.17 KB
/
Copy pathissues-to-pages.yml
File metadata and controls
75 lines (63 loc) · 2.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Build and Deploy Jobs Site (Issue Incremental)
on:
issues:
types: [opened, edited, reopened, closed, labeled, unlabeled]
permissions:
contents: write
issues: write
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20"
cache: npm
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test
- name: Build normalized data and static site (single issue)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
SITE_URL: https://hire.rebase.network
LLM_API_KEY: ${{ secrets.LLM_API_KEY }}
LLM_MODEL: ${{ vars.LLM_MODEL }}
LLM_API_URL: ${{ vars.LLM_API_URL }}
LLM_API_TYPE: ${{ vars.LLM_API_TYPE }}
LLM_EXTRACTION_MODE: ${{ vars.LLM_EXTRACTION_MODE }}
run: npm run build:site
- name: Commit regenerated data
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add data/jobs.normalized.json data/jobs.rich.json data/issues data/feedback-state.json data/quality-summary.json data/quality-summary.md public/index.html public/feed.xml public/jobs.normalized.json public/jobs.rich.json public/quality-summary.json public/sitemap.xml public/robots.txt public/jobs
if ! git diff --cached --quiet; then
git commit -m "chore: regenerate jobs data and site"
git push
fi
- name: Configure Pages
uses: actions/configure-pages@v5
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: public
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4