-
-
Notifications
You must be signed in to change notification settings - Fork 4
40 lines (38 loc) · 976 Bytes
/
release-docs.yaml
File metadata and controls
40 lines (38 loc) · 976 Bytes
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
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'
- name: Deploy to Netlify
uses: flowexec/action@v1
with:
executable: "deploy docs:netlify ${{ github.event.inputs.environment || 'production' }}"
timeout: '5m'
flow-version: 'main'
secrets: |
{
"netlify-flow-site-id": "${{ secrets.NETLIFY_SITE_ID }}",
"netlify-pat": "${{ secrets.NETLIFY_AUTH_TOKEN }}"
}