Compare commits

...

2 Commits

Author SHA1 Message Date
Dreamacro 4d5c0802e0 Update actions version 2025-05-10 01:05:49 +08:00
Dreamacro f7c8536ef6 Add release branch 2021-01-30 00:34:07 +08:00
1 changed files with 14 additions and 5 deletions

View File

@ -11,12 +11,12 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Check out repo - name: Check out repo
uses: actions/checkout@v2 uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
- name: git tag - name: git tag
uses: actions/github-script@v2 uses: actions/github-script@v7
id: tag id: tag
with: with:
script: | script: |
@ -38,12 +38,21 @@ jobs:
run: | run: |
wget -O ./GeoLite2-Country.tar.gz "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country&license_key=${LICENSE_KEY}&suffix=tar.gz" wget -O ./GeoLite2-Country.tar.gz "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country&license_key=${LICENSE_KEY}&suffix=tar.gz"
tar zxvf ./GeoLite2-Country.tar.gz -C . tar zxvf ./GeoLite2-Country.tar.gz -C .
mv ./GeoLite2-Country_*/GeoLite2-Country.mmdb ./Country.mmdb mkdir dist
mv ./GeoLite2-Country_*/GeoLite2-Country.mmdb ./dist/Country.mmdb
- name: Upload Release - name: Upload Release
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v2
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
files: Country.mmdb files: dist/Country.mmdb
tag_name: ${{steps.tag.outputs.result}} tag_name: ${{steps.tag.outputs.result}}
- name: Upload to release branch
uses: crazy-max/ghaction-github-pages@v4
with:
target_branch: release
build_dir: dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}