Skip to content

Commit 40f594a

Browse files
committed
Refactor deployment step in GitHub Actions to use Cloudflare Pages action
Signed-off-by: DavidOsipov <[email protected]>
1 parent 52e4339 commit 40f594a

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/jekyll-gh-pages.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,11 @@ jobs:
3737
run: bundle exec jekyll build --source site --destination build
3838
working-directory: site
3939

40-
- name: Deploy to Cloudflare Pages
41-
env:
42-
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}
43-
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
44-
run: npx wrangler pages deploy build --project-name="postquantum-feldman-vss" --branch=main
40+
- name: Publish
41+
uses: cloudflare/pages-action@v1
42+
with:
43+
apiToken: ${{ secrets.CLOUDFLARE_TOKEN }}
44+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
45+
projectName: "postquantum-feldman-vss"
46+
directory: "site/build"
47+
gitHubToken: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)