-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 899 Bytes
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Deploy to Cloudflare Pages
on:
push:
branches:
- main
concurrency:
group: deploy
cancel-in-progress: true
jobs:
build:
uses: ./.github/workflows/build.yml
with:
environment: Production
secrets: inherit
deploy:
name: Deploy
runs-on: ubuntu-latest
environment: Production
needs: build
steps:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Download build artifact
uses: actions/download-artifact@v4
with:
name: ${{ needs.build.outputs.artifact-name }}
path: dist
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ vars.CLOUDFLARE_ACCOUNT_ID }}
projectName: taco-tapper
branch: main
directory: dist