Skip to content

Commit

Permalink
deploy to cloudflare
Browse files Browse the repository at this point in the history
  • Loading branch information
Lykhoyda committed May 25, 2024
1 parent 68d47d2 commit c90a2ed
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Frontend Deployment

on:
push:
branches: ['main']
branches: [ 'main' ]
workflow_dispatch:

# Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages
Expand All @@ -13,7 +13,7 @@ permissions:

concurrency:
group: 'pages'
# group: main-${{ github.workflow }}-${{ github.ref }}
# group: main-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true


Expand Down Expand Up @@ -52,6 +52,11 @@ jobs:
uses: actions/upload-pages-artifact@v3
with:
path: ./frontend/dist
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
- name: Publish
uses: cloudflare/pages-action@1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: zktripster
directory: ./frontend/dist
gitHubToken: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit c90a2ed

Please sign in to comment.