Update CN related domains #1913
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test PR | |
on: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout codebase | |
uses: actions/checkout@v4 | |
with: | |
path: code | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: code/go.mod | |
- name: Set variables | |
run: | | |
echo "RELEASE_NAME=$(date +%Y%m%d%H%M%S)" >> $GITHUB_ENV | |
echo "TAG_NAME=$(date +%Y%m%d%H%M%S)" >> $GITHUB_ENV | |
shell: bash | |
- name: Build dlc.dat file | |
run: | | |
cd code || exit 1 | |
go run ./ --outputdir=../ --exportlists=category-ads-all,tld-cn,cn,tld-\!cn,geolocation-\!cn,apple,icloud | |
cd ../ && rm -rf code | |
mv dlc.dat TEST-${{ github.run_number }}-dlc.dat | |
- name: Upload TEST-${{ github.run_number }}-dlc.dat | |
uses: actions/upload-artifact@v4 | |
with: | |
name: TEST-${{ github.run_number }}-dlc.dat | |
path: TEST-${{ github.run_number }}-dlc.dat |