-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (43 loc) · 1.56 KB
/
publish.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
43
44
45
46
47
on:
push:
branches: [main]
jobs:
publish:
name: Publish to Cloudflare Pages
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: dorny/paths-filter@v3
id: files_changed
with:
filters: |
lib:
- '/packages/common/**'
sites:
- '/packages/sites/**'
# run only if some file in 'src' folder was changed
# - if: steps.files_changed.outputs.src == 'true'
# run: ...
- name: List Changed Files
run: echo ${{ steps.files_changed.outputs.files_changed_files }}
# Run a build step here if your project requires
# - name: Publish to Cloudflare Pages
# uses: cloudflare/pages-action@v1
# with:
# apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
# accountId: YOUR_ACCOUNT_ID
# projectName: YOUR_PROJECT_NAME
# directory: YOUR_BUILD_OUTPUT_DIRECTORY
# # Optional: Enable this if you want to have GitHub Deployments triggered
# gitHubToken: ${{ secrets.GITHUB_TOKEN }}
# # Optional: Switch what branch you are publishing to.
# # By default this will be the branch which triggered this workflow
# branch: main
# # Optional: Change the working directory
# workingDirectory: my-site
# # Optional: Change the Wrangler version, allows you to point to a specific version or a tag such as `beta`
# wranglerVersion: "3"