Skip to content

Commit

Permalink
ci(github-actions): fix secrets stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
ajhalili2006 authored Dec 31, 2024
1 parent e05d4ce commit 748829b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/cf-pages.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Cloudflare Pages
name: Site Deploys

on:
push:
Expand All @@ -12,12 +12,12 @@ env:
PYTHON_VERSION: 3.13

jobs:
publish:
cf-pages:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
name: Deploy on main branch
name: Cloudflare Pages - production
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:
- name: Install Python dependencies
run: pipenv install

- name: Deploy documentation
- name: Build site
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
PYTHONPATH: .
Expand All @@ -57,7 +57,7 @@ jobs:
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_BOT_API_TOKEN }}
apiToken: ${{ secrets.CLOUDFLARE_SERVICE_ACCOUNT_TOKEN }}
accountId: ${{ env.CF_ACCOUNT_ID }}
projectName: ${{ env.PAGES_PROJECT_NAME}}
directory: public
Expand Down

0 comments on commit 748829b

Please sign in to comment.