-
-
Notifications
You must be signed in to change notification settings - Fork 4
41 lines (39 loc) · 1.02 KB
/
Copy pathrelease-docs.yaml
File metadata and controls
41 lines (39 loc) · 1.02 KB
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
name: Docs
on:
push:
tags:
- "*"
workflow_dispatch:
inputs:
environment:
description: 'Deployment environment'
required: false
default: 'production'
type: choice
options:
- production
- preview
jobs:
release-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Install dependencies
uses: flowexec/action@v1
with:
executable: 'install docs:'
timeout: '5m'
flow-version: 'main'
- name: Deploy to Cloudflare Pages
uses: flowexec/action@v1
with:
executable: "deploy docs:cloudflare ${{ github.event.inputs.environment || 'production' }}"
timeout: '5m'
flow-version: 'main'
secrets: |
{
"flow-cloudflare-account-id": "${{ secrets.CLOUDFLARE_ACCOUNT_ID }}",
"flow-cloudflare-api-token": "${{ secrets.CLOUDFLARE_API_TOKEN }}"
}