Zip rule files into one

Closes #25
This commit is contained in:
loyalsoldier 2020-05-27 14:20:47 +08:00
parent 10961eff9c
commit 838b85e50a

View File

@ -138,11 +138,13 @@ jobs:
mv ./*-excluse-list ./publish/ mv ./*-excluse-list ./publish/
cp -f $GOPATH/src/$GEOSITE_REPO/data/{proxy,direct,reject}-list ./publish/ cp -f $GOPATH/src/$GEOSITE_REPO/data/{proxy,direct,reject}-list ./publish/
- name: Generate dat files sha256 hash - name: Zip files and generate sha256 hash
run: | run: |
cd ./publish cd ./publish
zip rules.zip {proxy,direct,reject}-list *.dat
sha256sum geoip.dat > geoip.dat.sha256sum sha256sum geoip.dat > geoip.dat.sha256sum
sha256sum geosite.dat > geosite.dat.sha256sum sha256sum geosite.dat > geosite.dat.sha256sum
sha256sum rules.zip > rules.zip.sha256sum
- name: Release and upload assets - name: Release and upload assets
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1