mirror of
https://github.com/P3TERX/GeoLite.mmdb.git
synced 2026-09-05 23:05:48 +08:00
also pull and publish csv versions of databases
This commit is contained in:
parent
6a54ac05c3
commit
95ae37f2ec
20
.github/workflows/GeoLite.yml
vendored
20
.github/workflows/GeoLite.yml
vendored
@ -31,6 +31,22 @@ jobs:
|
|||||||
cp -v GeoLite*/*.mmdb upload
|
cp -v GeoLite*/*.mmdb upload
|
||||||
echo "TAG_NAME=$(date +"%Y.%m.%d")" >> $GITHUB_ENV
|
echo "TAG_NAME=$(date +"%Y.%m.%d")" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Download GeoLite.csv
|
||||||
|
run: |
|
||||||
|
wget -nv -O GeoLite2-ASN-CSV.zip "https://download.maxmind.com/app/geoip_download_by_token?edition_id=GeoLite2-ASN-CSV&license_key=${{ secrets.LICENSE_KEY }}&suffix=zip"
|
||||||
|
wget -nv -O GeoLite2-Country-CSV.zip "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country-CSV&license_key=${{ secrets.LICENSE_KEY }}&suffix=zip"
|
||||||
|
wget -nv -O GeoLite2-City-CSV.zip "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City-CSV&license_key=${{ secrets.LICENSE_KEY }}&suffix=zip"
|
||||||
|
|
||||||
|
- name: Decompress Zips
|
||||||
|
uses: TonyBogdanov/zip@1.0
|
||||||
|
with:
|
||||||
|
args: unzip -qq GeoLite2-*-CSV.zip
|
||||||
|
|
||||||
|
- name: Copy GeoLite2.csv
|
||||||
|
run: |
|
||||||
|
cp -v GeoLite*/*.csv upload
|
||||||
|
echo "TAG_NAME=$(date +"%Y.%m.%d")" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Push to "download" branch
|
- name: Push to "download" branch
|
||||||
run: |
|
run: |
|
||||||
cd upload
|
cd upload
|
||||||
@ -50,7 +66,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
tag_name: ${{ env.TAG_NAME }}
|
tag_name: ${{ env.TAG_NAME }}
|
||||||
body: ${{ env.TAG_NAME }}
|
body: ${{ env.TAG_NAME }}
|
||||||
files: upload/*.mmdb
|
files: |
|
||||||
|
upload/*.mmdb
|
||||||
|
upload/*.csv
|
||||||
|
|
||||||
- name: Remove old Releases
|
- name: Remove old Releases
|
||||||
uses: dev-drprasad/delete-older-releases@v0.2.0
|
uses: dev-drprasad/delete-older-releases@v0.2.0
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user