Skip to content

Commit

Permalink
chore: update deploy action
Browse files Browse the repository at this point in the history
  • Loading branch information
barrenechea committed Aug 1, 2024
1 parent 2e6a78d commit c77c03a
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ jobs:
deploy:
name: Cloudflare Pages
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write

steps:
- name: Checkout
Expand All @@ -33,13 +30,9 @@ jobs:
- name: Build
run: npm run build

- name: Publish
uses: cloudflare/pages-action@1
- name: Deploy
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: barrenechea-website
directory: dist
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
# Enable Wrangler v3
wranglerVersion: "3"
command: pages deploy dist --project-name=barrenechea-website

0 comments on commit c77c03a

Please sign in to comment.