Skip to content

Commit e0a7569

Browse files
authored
ci: extract cloudflare's project name into a top level env var
1 parent 57607f1 commit e0a7569

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/__deploy.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ on:
1717
type: string
1818
default: frontend
1919

20+
env:
21+
CF_PROJECT_NAME: jf-vue
22+
2023
jobs:
2124
cf-pages:
2225
name: CloudFlare Pages 📃
@@ -40,7 +43,7 @@ jobs:
4043
with:
4144
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
4245
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
43-
command: pages deploy dist --project-name=jf-vue --branch=${{ inputs.branch }}
46+
command: pages deploy dist --project-name=${{ env.CF_PROJECT_NAME }} --branch=${{ inputs.branch }}
4447

4548
compose-comment:
4649
name: Compose and push comment 📝

0 commit comments

Comments
 (0)