mirror of
https://github.com/v2fly/domain-list-community.git
synced 2026-02-04 13:03:14 +07:00
Support to export all lists to a plain yml (#3211)
* Refactor: improve deduplicate * Feat: support to export all lists to a plain yml use: `--exportlists=_all_` * Docs: add links for dlc plain yml [skip ci]
This commit is contained in:
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
@@ -33,15 +33,16 @@ jobs:
|
||||
echo "TAG_NAME=$(date +%Y%m%d%H%M%S)" >> $GITHUB_ENV
|
||||
shell: bash
|
||||
|
||||
- name: Build dlc.dat file
|
||||
- name: Build dlc.dat and plain lists
|
||||
run: |
|
||||
cd code || exit 1
|
||||
go run ./ --outputdir=../ --exportlists=category-ads-all,tld-cn,cn,tld-\!cn,geolocation-\!cn,apple,icloud
|
||||
go run ./ --outputdir=../ --exportlists=_all_,category-ads-all,tld-cn,cn,tld-\!cn,geolocation-\!cn,apple,icloud
|
||||
cd ../ && rm -rf code
|
||||
|
||||
- name: Generate dlc.dat sha256 hash
|
||||
run: |
|
||||
sha256sum dlc.dat > dlc.dat.sha256sum
|
||||
sha256sum dlc.dat_plain.yml > dlc.dat_plain.yml.sha256sum
|
||||
|
||||
- name: Generate Zip
|
||||
run: |
|
||||
@@ -66,6 +67,6 @@ jobs:
|
||||
|
||||
- name: Release and upload assets
|
||||
run: |
|
||||
gh release create ${{ env.TAG_NAME }} --generate-notes --latest --title ${{ env.RELEASE_NAME }} ./dlc.dat ./dlc.dat.*
|
||||
gh release create ${{ env.TAG_NAME }} --generate-notes --latest --title ${{ env.RELEASE_NAME }} ./dlc.dat ./dlc.dat.* ./dlc.dat_plain.yml ./dlc.dat_plain.yml.*
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user