Skip to content

Commit f14bb0a

Browse files
authored
Test workflow to deploy to Cloudflare Pages (#80)
1 parent e29eec0 commit f14bb0a

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/pages.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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 }}

0 commit comments

Comments
 (0)