-
-
Notifications
You must be signed in to change notification settings - Fork 721
35 lines (31 loc) · 1 KB
/
generate-docs.yaml
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
name: Generate documentation
on:
push:
branches:
- main
paths:
- website/**
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
build:
if: false # disable this job
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: setup git config
run: |
git config --global user.name "${GH_NAME}"
git config --global user.email "${GH_EMAIL}"
echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
# Stage the file, commit and push
cd website && yarn && GIT_USER="ivarconr" yarn deploy
env:
GH_NAME: 'ivarconr'
GH_EMAIL: '[email protected]'
GH_TOKEN: ${{ secrets.GH_TOKEN }}
DEPLOYMENT_BRANCH: 'main'
UNLEASH_FEEDBACK_TARGET_URL: ${{ secrets.DOCS_FEEDBACK_TARGET_URL }}
UNLEASH_PROXY_CLIENT_KEY: ${{ secrets.UNLEASH_PROXY_CLIENT_KEY_PRODUCTION }}
UNLEASH_PROXY_URL: ${{ secrets.UNLEASH_PROXY_URL_PRODUCTION }}