Skip to content

Commit b04277f

Browse files
committed
fix data not latest
1 parent 1f397f3 commit b04277f

File tree

1 file changed

+28
-7
lines changed

1 file changed

+28
-7
lines changed

.github/workflows/build-tzpb.yml

Lines changed: 28 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,17 @@ jobs:
1916
with:
2017
go-version-file: go.mod
2118

19+
- name: Fetch tag
20+
id: set-latest-version
21+
run: |
22+
go install github.com/ringsaturn/tzf/cmd/checkboundaryrelease@$TZF_CLI_TOOL_VERSION
23+
24+
checkboundaryrelease >> $GITHUB_OUTPUT
25+
26+
- name: Set env
27+
run: |
28+
echo TIMEZONE_BOUNDARY_VERSION=${{ steps.set-latest-version.outputs.TIMEZONE_BOUNDARY_VERSION }} >> $GITHUB_ENV
29+
2230
- name: Download files
2331
run: |
2432
wget https://github.com/evansiroky/timezone-boundary-builder/releases/download/${TIMEZONE_BOUNDARY_VERSION}/timezones-with-oceans.geojson.zip
@@ -47,13 +55,26 @@ jobs:
4755
preindextzpb data/combined-with-oceans.reduce.bin
4856
ls -alh data/
4957
50-
- name: Upload tzpb artifacts
51-
uses: actions/upload-artifact@v4
58+
- uses: actions/upload-artifact@v4
5259
with:
53-
name: tzpb-files
60+
name: combined-with-oceans.bin
5461
path: |
55-
data/combined-with-oceans.json
5662
data/combined-with-oceans.bin
63+
64+
- uses: actions/upload-artifact@v4
65+
with:
66+
name: combined-with-oceans.reduce.bin
67+
path: |
5768
data/combined-with-oceans.reduce.bin
69+
70+
- uses: actions/upload-artifact@v4
71+
with:
72+
name: combined-with-oceans.reduce.compress.bin
73+
path: |
5874
data/combined-with-oceans.reduce.compress.bin
75+
76+
- uses: actions/upload-artifact@v4
77+
with:
78+
name: combined-with-oceans.reduce.preindex.bin
79+
path: |
5980
data/combined-with-oceans.reduce.preindex.bin

0 commit comments

Comments
 (0)