Skip to content

Commit 7578bc4

Browse files
committed
fix data not latest
1 parent 1f397f3 commit 7578bc4

File tree

1 file changed

+26
-7
lines changed

1 file changed

+26
-7
lines changed

.github/workflows/build-tzpb.yml

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ on:
44
push:
55
branches: [main]
66

7-
env:
8-
TIMEZONE_BOUNDARY_VERSION: 2025a
9-
107
jobs:
118
build-tzpb-pipeline:
129
runs-on: ubuntu-latest
@@ -19,6 +16,15 @@ jobs:
1916
with:
2017
go-version-file: go.mod
2118

19+
- name: Fetch tag
20+
id: set-latest-version
21+
run: |
22+
go run ./cmd/checkboundaryrelease/main.go >> $GITHUB_OUTPUT
23+
24+
- name: Set env
25+
run: |
26+
echo TIMEZONE_BOUNDARY_VERSION=${{ steps.set-latest-version.outputs.TIMEZONE_BOUNDARY_VERSION }} >> $GITHUB_ENV
27+
2228
- name: Download files
2329
run: |
2430
wget https://github.com/evansiroky/timezone-boundary-builder/releases/download/${TIMEZONE_BOUNDARY_VERSION}/timezones-with-oceans.geojson.zip
@@ -47,13 +53,26 @@ jobs:
4753
preindextzpb data/combined-with-oceans.reduce.bin
4854
ls -alh data/
4955
50-
- name: Upload tzpb artifacts
51-
uses: actions/upload-artifact@v4
56+
- uses: actions/upload-artifact@v4
5257
with:
53-
name: tzpb-files
58+
name: combined-with-oceans.bin
5459
path: |
55-
data/combined-with-oceans.json
5660
data/combined-with-oceans.bin
61+
62+
- uses: actions/upload-artifact@v4
63+
with:
64+
name: combined-with-oceans.reduce.bin
65+
path: |
5766
data/combined-with-oceans.reduce.bin
67+
68+
- uses: actions/upload-artifact@v4
69+
with:
70+
name: combined-with-oceans.reduce.compress.bin
71+
path: |
5872
data/combined-with-oceans.reduce.compress.bin
73+
74+
- uses: actions/upload-artifact@v4
75+
with:
76+
name: combined-with-oceans.reduce.preindex.bin
77+
path: |
5978
data/combined-with-oceans.reduce.preindex.bin

0 commit comments

Comments
 (0)