Merge pull request #92 from ririko5834/patch-1 #108
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: Publish | |
on: | |
push: | |
branches: [main] | |
paths: | |
- "domains/**" | |
- ".github/workflows/publish.yml" | |
- "dnsconfig.js" | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.ref }}-publish | |
cancel-in-progress: false | |
jobs: | |
dns: | |
name: DNS | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: echo '{"cloudflare":{"TYPE":"CLOUDFLAREAPI","apitoken":"$CLOUDFLARE_API_TOKEN"}}' > ./creds.json | |
- name: Publish | |
uses: is-cool-me/dnscontrol-action@v4.9.0 | |
env: | |
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }} | |
with: | |
args: push | |
config_file: "dnsconfig.js" |