Skip to content

Commit

Permalink
Migrate pages-action to wrangler-action (#473)
Browse files Browse the repository at this point in the history
  • Loading branch information
Blacksmoke16 authored Nov 29, 2024
1 parent 8d448a9 commit 5bf4495
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,11 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: 3.x
- run: pip install -r requirements.txt
- name: Build Docs
run: mkdocs build -d ./site
run: make build
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: athenaframework
directory: site
branch: master
command: pages deploy ./site --project-name=athenaframework --branch=master
6 changes: 2 additions & 4 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,8 @@ jobs:
- name: Build Docs
run: make build
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: athenaframework
directory: site
branch: dev
command: pages deploy ./site --project-name=athenaframework --branch=dev

0 comments on commit 5bf4495

Please sign in to comment.