From d10bfefe6882b0dd6be27dc877b226324309a2d0 Mon Sep 17 00:00:00 2001 From: Andrevich <47223721+1andrevich@users.noreply.github.com> Date: Sat, 28 Sep 2024 20:03:30 +0400 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f260451..3995c4f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,18 +16,18 @@ on: jobs: build_geoip: - name: Build geoip.dat (from antifilter-geoip) + name: Build geoip.dat (from refilter-geoip) runs-on: ubuntu-latest steps: - - name: Checkout antifilter-geoip + - name: Checkout refilter-geoip uses: actions/checkout@v4 with: - path: ./antifilter-geoip + path: ./refilter-geoip - name: Set up Go uses: actions/setup-go@v5 with: - go-version-file: ./antifilter-geoip/go.mod + go-version-file: ./refilter-geoip/go.mod - name: Set variables for geoip run: | @@ -36,11 +36,11 @@ jobs: shell: bash - name: Build geoip.dat - run: go run ./antifilter-geoip/main.go + run: go run ./refilter-geoip/main.go - name: Generate sha256 checksum for geoip.dat files run: | - cd ./antifilter-geoip/output/dat || exit 1 + cd ./refilter-geoip/output/dat || exit 1 for name in $(ls *.dat); do sha256sum ${name} > ./${name}.sha256sum done @@ -48,7 +48,7 @@ jobs: - name: Move geoip files to publish directory run: | mkdir -p publish - mv ./antifilter-geoip/output/dat/*.dat ./antifilter-geoip/output/dat/*.sha256sum ./publish + mv ./refilter-geoip/output/dat/*.dat ./refilter-geoip/output/dat/*.sha256sum ./publish - name: Release and upload geoip assets run: | @@ -59,18 +59,18 @@ jobs: GITHUB_TOKEN: ${{ github.token }} build_geosite: - name: Build geosite.dat (from antifilter-domain) + name: Build geosite.dat (from refilter-domain) runs-on: ubuntu-latest steps: - - name: Checkout antifilter-domain + - name: Checkout refilter-domain uses: actions/checkout@v4 with: - path: ./antifilter-domain + path: ./refilter-domain - name: Setup Go uses: actions/setup-go@v5 with: - go-version-file: ./antifilter-domain/go.mod + go-version-file: ./refilter-domain/go.mod - name: Set variables for geosite run: | @@ -82,7 +82,7 @@ jobs: run: mkdir -p data && cp ./domains_all.lst ./data/refilter - name: Build geosite.dat - run: go run ./antifilter-domain/main.go --exportlists=refilter --outputname=geosite.dat + run: go run ./refilter-domain/main.go --exportlists=refilter --outputname=geosite.dat - name: Generate sha256 hash for geosite.dat run: sha256sum geosite.dat > geosite.dat.sha256sum