Merge pull request #42925 from arnv-dev/main #11887
This file contains hidden or 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: Publish | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "domains/*" | |
| - ".github/workflows/publish.yml" | |
| - "util/reserved.json" | |
| - "dnsconfig.js" | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.ref }}-publish | |
| jobs: | |
| dns: | |
| name: DNS | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| - name: Generate creds.json | |
| run: echo '{"cloudflare":{"TYPE":"CLOUDFLAREAPI","apitoken":"$CLOUDFLARE_API_TOKEN"}}' > ./creds.json | |
| - name: Push DNS records | |
| uses: is-a-dev/dnscontrol-action@main | |
| env: | |
| CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| with: | |
| args: push |