mirror of
https://github.com/tiennm99/open-domains.git
synced 2026-10-20 02:18:04 +00:00
31 lines
682 B
YAML
31 lines
682 B
YAML
name: Deploy
|
|
|
|
on:
|
|
workflow_dispatch: {}
|
|
push:
|
|
branches: [main]
|
|
paths: [domains/**, .github/workflows/deploy.yml]
|
|
|
|
concurrency:
|
|
group: ${{ github.ref }}-deploy
|
|
cancel-in-progress: false
|
|
|
|
jobs:
|
|
check:
|
|
name: DNS
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: gacts/install-dnscontrol@v1
|
|
with:
|
|
version: 3.31.4
|
|
|
|
- name: Create credentials file
|
|
run: echo '{"cloudflare":{"TYPE":"CLOUDFLAREAPI","accountid":"$CF_ID","apitoken":"$CF_TOKEN"}}' > ./creds.json
|
|
|
|
- run: dnscontrol push
|
|
env:
|
|
CF_ID: ${{ secrets.CF_ACCOUNT_ID }}
|
|
CF_TOKEN: ${{ secrets.CF_API_TOKEN }}
|