mirror of
https://github.com/Unleash/unleash.git
synced 2024-10-28 19:06:12 +01:00
99e7aec18a
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
35 lines
996 B
YAML
35 lines
996 B
YAML
name: Generate documentation
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- website/**
|
|
|
|
workflow_dispatch:
|
|
|
|
schedule:
|
|
- cron: '0 0 * * *'
|
|
|
|
jobs:
|
|
build:
|
|
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: 'ivarconr@gmail.com'
|
|
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 }}
|