Skip to content

Commit

Permalink
ci: extract cloudflare's project name into a top level env var
Browse files Browse the repository at this point in the history
  • Loading branch information
ferferga authored Oct 3, 2024
1 parent 57607f1 commit e0a7569
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/__deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ on:
type: string
default: frontend

env:
CF_PROJECT_NAME: jf-vue

jobs:
cf-pages:
name: CloudFlare Pages 📃
Expand All @@ -40,7 +43,7 @@ jobs:
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy dist --project-name=jf-vue --branch=${{ inputs.branch }}
command: pages deploy dist --project-name=${{ env.CF_PROJECT_NAME }} --branch=${{ inputs.branch }}

compose-comment:
name: Compose and push comment 📝
Expand Down

0 comments on commit e0a7569

Please sign in to comment.