|
5 | 5 | branches: |
6 | 6 | - main |
7 | 7 | - "feat-*" |
8 | | - paths-ignore: |
9 | | - - "data/processed/**" |
10 | | - - "conf/series_geocode.json" |
11 | 8 |
|
12 | 9 | permissions: |
13 | 10 | id-token: write |
14 | 11 | pages: write |
15 | | - contents: write |
| 12 | + contents: read |
16 | 13 |
|
17 | 14 | jobs: |
18 | | - geocode-conf: |
| 15 | + build: |
19 | 16 | runs-on: ubuntu-latest |
20 | 17 | steps: |
21 | | - - name: Check out repository |
| 18 | + - name: Check out repository (Initial commit state) |
22 | 19 | uses: actions/checkout@v4 |
23 | 20 |
|
24 | 21 | - name: Set up Python |
|
31 | 28 | python -m pip install --upgrade pip |
32 | 29 | pip install -r requirements.txt |
33 | 30 |
|
34 | | - - name: Run Geocode Config Script |
35 | | - run: python scripts/geocode.py |
36 | | - |
37 | | - - name: Commit Geocode if changed |
38 | | - uses: stefanzweifel/git-auto-commit-action@v5 |
39 | | - with: |
40 | | - commit_message: "conf: auto-generate geocode configuration [skip ci]" |
41 | | - |
42 | | - process_data: |
43 | | - needs: [geocode-conf] |
44 | | - runs-on: ubuntu-latest |
45 | | - steps: |
46 | | - - name: Check out repository (Initial commit state) |
47 | | - uses: actions/checkout@v4 |
48 | | - |
49 | | - - name: Pull latest changes from remote branch |
50 | | - run: git pull origin ${{ github.ref_name }} |
51 | | - |
52 | | - - name: Setup Node.js |
53 | | - uses: actions/setup-node@v4 |
54 | | - with: |
55 | | - node-version: "20" |
56 | | - |
57 | | - - name: Install dependencies |
58 | | - run: npm install |
59 | | - |
60 | | - - name: Run Data Processor Script |
61 | | - run: npm run ci-data-processor |
62 | | - |
63 | | - - name: Commit processed data if changed |
64 | | - uses: stefanzweifel/git-auto-commit-action@v5 |
65 | | - with: |
66 | | - commit_message: "data: auto-generate procesed data [skip ci]" |
67 | | - |
68 | | - build-assets: |
69 | | - needs: [geocode-conf, process_data] |
70 | | - runs-on: ubuntu-latest |
71 | | - steps: |
72 | | - - name: Check out repository (Initial commit state) |
73 | | - uses: actions/checkout@v4 |
74 | | - |
75 | | - - name: Pull latest changes from remote branch |
76 | | - run: git pull origin ${{ github.ref_name }} |
77 | | - |
78 | 31 | - name: Setup Node.js |
79 | 32 | uses: actions/setup-node@v4 |
80 | 33 | with: |
|
92 | 45 | path: "./dist" |
93 | 46 |
|
94 | 47 | deploy_pages: |
95 | | - needs: [build-assets] |
| 48 | + needs: [build] |
96 | 49 | runs-on: ubuntu-latest |
97 | 50 | environment: |
98 | 51 | name: github-pages |
|
0 commit comments