Skip to content

Commit 2c606f1

Browse files
authored
Manually define the upload URL
actions/upload-release-asset#20
1 parent e5e3067 commit 2c606f1

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

.github/workflows/geoip.yml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
download:
10-
name: Cache GeoIP database
10+
name: Download GeoIP database
1111
runs-on: ubuntu-20.04
1212

1313
steps:
@@ -23,24 +23,13 @@ jobs:
2323
needs: download
2424

2525
steps:
26-
- name: Create Release
27-
id: create_release
28-
uses: actions/create-release@v1
29-
env:
30-
GITHUB_TOKEN: ${{ secrets.GEOIP_TOKEN }}
31-
with:
32-
tag_name: monthly
33-
release_name: IP2Location™ LITE IP-COUNTRY Database
34-
draft: false
35-
prerelease: false
36-
3726
- name: Upload Release Asset
3827
id: upload-release-asset
3928
uses: actions/upload-release-asset@v1
4029
env:
4130
GITHUB_TOKEN: ${{ secrets.GEOIP_TOKEN }}
4231
with:
43-
upload_url: ${{ steps.create_release.outputs.upload_url }}
32+
upload_url: https://github.com/OpenRA/GeoIP-Database/releases/download/49852973/assets?name=IP2LOCATION-LITE-DB1.IPV6.BIN.1.ZIP
4433
asset_path: ./IP2LOCATION-LITE-DB1.IPV6.BIN.ZIP
4534
asset_name: IP2LOCATION-LITE-DB1.IPV6.BIN.ZIP
4635
asset_content_type: application/zip

0 commit comments

Comments
 (0)