Skip to content

Probably now it will work #17

Probably now it will work

Probably now it will work #17

Workflow file for this run

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:
- name: Checkout repository
uses: actions/checkout@v4
- name: Create Cloudflare credentials file
run: |
echo '{"cloudflare": {"TYPE": "CLOUDFLAREAPI", "accountid": "$CF_ACCOUNT_ID", "apitoken": "$CF_API_TOKEN"}}' > ./creds.json
- name: Install DNSControl
uses: is-cool-me/[email protected]
- name: Publish DNS Records
run: dnscontrol push
env:
CF_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}
CF_API_TOKEN: ${{ secrets.CF_API_TOKEN }}