diff --git a/.github/workflows/bash.yml b/.github/workflows/bash.yml new file mode 100644 index 0000000..a4551fc --- /dev/null +++ b/.github/workflows/bash.yml @@ -0,0 +1,23 @@ +name: bash +on: [push] +jobs: + + build: + name: Pull and Release + runs-on: ubuntu-latest + steps: + - name: Download file + env: + LICENSE_KEY: ${{ secrets.LICENSE_KEY }} + run: | + wget https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country&license_key=${LICENSE_KEY}&suffix=tar.gz -O ./GeoLite2-Country.tar.gz + tar zxvf ./GeoLite2-Country.tar.gz -C . + mv ./GeoLite2-Country_*/GeoLite2-Country.mmdb ./Country.mmdb + + - name: Upload Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + files: Country.mmdb diff --git a/README.md b/README.md index 8f1da7e..695a1df 100644 --- a/README.md +++ b/README.md @@ -1 +1,3 @@ -# maxmind-geoip \ No newline at end of file +# maxmind-geoip + +https://blog.maxmind.com/2019/12/18/significant-changes-to-accessing-and-using-geolite2-databases/