Probably now it will work #17
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: | |
- 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 }} |