mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-28 00:06:53 +01:00
26 lines
632 B
YAML
26 lines
632 B
YAML
|
name: Generate documentation
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- master
|
||
|
|
||
|
jobs:
|
||
|
build:
|
||
|
|
||
|
runs-on: ubuntu-latest
|
||
|
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
- 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 && npm install && GIT_USER="ivarconr" npm run publish-gh-pages
|
||
|
env:
|
||
|
GH_NAME: 'ivarconr'
|
||
|
GH_EMAIL: 'ivarconr@gmail.com'
|
||
|
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|