Merge pull request #261 from Loyalsoldier/master

Update workflow
This commit is contained in:
Richard Chen 2020-03-13 07:18:54 +08:00 committed by GitHub
commit ef06df9dbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 31 additions and 2 deletions

View File

@ -33,6 +33,21 @@ jobs:
run: | run: |
domain-list-community domain-list-community
- name: Generate dlc.dat sha256 hash
run: |
sha256sum dlc.dat > dlc.dat.sha256sum
- name: Git push assets to "release" branch
run: |
git init
git config --local user.name "${{ github.actor }}"
git config --local user.email "${{ github.actor }}@users.noreply.github.com"
git checkout -b release
git add dlc.dat dlc.dat.sha256sum
git commit -m "${{ env.RELEASE_NAME }}"
git remote add origin "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}"
git push -f -u origin release
- name: Create a release - name: Create a release
id: create_release id: create_release
uses: actions/create-release@v1 uses: actions/create-release@v1
@ -44,8 +59,7 @@ jobs:
draft: false draft: false
prerelease: false prerelease: false
- name: Upload dat file - name: Upload dlc.dat
id: upload-release-asset
uses: actions/upload-release-asset@v1 uses: actions/upload-release-asset@v1
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -54,3 +68,13 @@ jobs:
asset_path: ./dlc.dat asset_path: ./dlc.dat
asset_name: dlc.dat asset_name: dlc.dat
asset_content_type: application/octet-stream asset_content_type: application/octet-stream
- name: Upload dlc.dat sha256sum
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dlc.dat.sha256sum
asset_name: dlc.dat.sha256sum
asset_content_type: text/plain

View File

@ -6,6 +6,11 @@ This project manages a list of domains, to be used as geosites for routing purpo
This project is not opinionated. In other words, it does NOT endorse, claim or imply that a domain should be blocked or proxied. It can be used to generate routing rules on demand. This project is not opinionated. In other words, it does NOT endorse, claim or imply that a domain should be blocked or proxied. It can be used to generate routing rules on demand.
## Download links
- **dlc.dat**[https://github.com/v2ray/domain-list-community/raw/release/dlc.dat](https://github.com/v2ray/domain-list-community/raw/release/dlc.dat)
- **dlc.dat.sha256sum**[https://github.com/v2ray/domain-list-community/raw/release/dlc.dat.sha256sum](https://github.com/v2ray/domain-list-community/raw/release/dlc.dat.sha256sum)
## Structure of data ## Structure of data
All data are under `data/` directory. Each file in the directory represents a sub-list of domains, named by the file name. File content is in the following format. All data are under `data/` directory. Each file in the directory represents a sub-list of domains, named by the file name. File content is in the following format.