diff --git a/.gitea/workflows/dnsmasq-china-list.yaml b/.gitea/workflows/dnsmasq-china-list.yaml new file mode 100644 index 0000000..50bd176 --- /dev/null +++ b/.gitea/workflows/dnsmasq-china-list.yaml @@ -0,0 +1,25 @@ +name: Build SmartDNS DNSMasq China List +on: + workflow_dispatch: + schedule: + - cron: '0 4 * * *' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + run: | + git clone https://github.com/felixonmars/dnsmasq-china-list.git --depth 1 + + - name: Build SmartDNS DNSMasq China List + run: | + cd dnsmasq-china-list + make smartdns SERVER=china + + - name: Release + uses: https://gitea.com/actions/release-action@main + with: + files: |- + *.smartdns.conf + api_key: '${{secrets.RELEASE_TOKEN}}' \ No newline at end of file