-
-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (32 loc) · 979 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
on:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
name: Publish to Cloudflare Pages
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Fluent CI
uses: fluentci-io/setup-fluentci@v5
with:
wasm: true
pipeline: bun
args: run build:prod
working-directory: webui
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
- name: Publish to Cloudflare Pages
run: fluentci run --wasm cloudflare pages_deploy $DIRECTORY --project-name $PROJECT_NAME
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: fe5b1e2ce9f94f4c0415ab94ce402012
PROJECT_NAME: fluentci-dashboard
DIRECTORY: dist
GITHUB_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
working-directory: webui