From eea0e89be665bc211e042e993ebc69e8d14c39d6 Mon Sep 17 00:00:00 2001
From: loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com>
Date: Thu, 12 Mar 2020 23:00:07 +0800
Subject: [PATCH 1/3] Generate dlc.dat sha256 hash

---
 .github/workflows/build.yml | 17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 6c45fcf9..8ffc7f93 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -33,6 +33,10 @@ jobs:
         run: |
           domain-list-community
 
+      - name: Generate dlc.dat sha256 hash
+        run: |
+          sha256sum dlc.dat > dlc.dat.sha256sum
+
       - name: Create a release
         id: create_release
         uses: actions/create-release@v1
@@ -44,8 +48,7 @@ jobs:
           draft: false
           prerelease: false
 
-      - name: Upload dat file
-        id: upload-release-asset 
+      - name: Upload dlc.dat
         uses: actions/upload-release-asset@v1
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -54,3 +57,13 @@ jobs:
           asset_path: ./dlc.dat
           asset_name: dlc.dat
           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

From c8ca8449282c3e9ffce356ad9a8f18a0bf0c6bc1 Mon Sep 17 00:00:00 2001
From: loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com>
Date: Thu, 12 Mar 2020 23:02:56 +0800
Subject: [PATCH 2/3] Push assets to release branch due to GitHub Actions error

---
 .github/workflows/build.yml | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 8ffc7f93..a22cedf4 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -37,6 +37,17 @@ jobs:
         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
         id: create_release
         uses: actions/create-release@v1

From 83bde92d3cb2650f42fbd934b5e83aef5b9106ab Mon Sep 17 00:00:00 2001
From: loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com>
Date: Thu, 12 Mar 2020 23:05:17 +0800
Subject: [PATCH 3/3] Update README with release branch download links

---
 README.md | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/README.md b/README.md
index f424be49..3124c1b2 100644
--- a/README.md
+++ b/README.md
@@ -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.
 
+## 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
 
 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.