add github actions workflow to publish the website

This commit is contained in:
ading2210 2025-01-27 01:16:58 -05:00
parent 5ab6ed30a2
commit 3a2ab40e75
2 changed files with 21 additions and 0 deletions

20
.github/workflows/website.yaml vendored Normal file
View file

@ -0,0 +1,20 @@
on: [push]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
name: Publish to Cloudflare Pages
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: b8079ffa92c97010f2a8d759e24cc782
projectName: libcurl
directory: website