File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy to Cloudflare Pages
2+
3+ on : [push]
4+ jobs :
5+ deploy :
6+ runs-on : ubuntu-latest
7+ permissions :
8+ contents : read
9+ deployments : write
10+ name : deploy
11+ steps :
12+ - name : Checkout
13+ uses : actions/checkout@v4
14+ - uses : actions/setup-node@v3
15+ with :
16+ node-version : ' 20'
17+ cache : ' yarn'
18+ - run : yarn install --frozen-lockfile
19+ - run : ROTO_API_HOST=https://rest.bgp-api.net ROUTINATOR_API_HOST=https://routinator.nlnetlabs.nl yarn build
20+ - name : Deploy
21+ uses : cloudflare/wrangler-action@v3
22+ with :
23+ apiToken : ${{ secrets.CLOUDFLARE_API_TOKEN }}
24+ accountId : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
25+ command : pages deploy public/ --project-name=routinator
26+ gitHubToken : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments