File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 67
67
name : devbox-${{ runner.os }}-${{ runner.arch }}
68
68
path : ./dist/devbox
69
69
retention-days : 7
70
+ - name : Publish to Cloudflare DNS
71
+ # comment out for testing
72
+ # if: github.event_name == 'schedule' # Only run on nightly builds
73
+ env :
74
+ CLOUDFLARE_API_TOKEN : ${{ secrets.CLOUDFLARE_API_TOKEN }}
75
+ CLOUDFLARE_ZONE_ID : ${{ secrets.CLOUDFLARE_ZONE_ID }}
76
+ run : |
77
+ ARTIFACT_URL="https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts"
78
+ curl -X POST "https://api.cloudflare.com/client/v4/zones/$CLOUDFLARE_ZONE_ID/dns_records" \
79
+ -H "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
80
+ -H "Content-Type: application/json" \
81
+ --data '{
82
+ "type": "CNAME",
83
+ "name": "nightly-${{ runner.os }}",
84
+ "content": "'$ARTIFACT_URL'",
85
+ "ttl": 1,
86
+ "proxied": tru
87
+ }'
70
88
71
89
typos :
72
90
name : Spell Check with Typos
You can’t perform that action at this time.
0 commit comments