2020-11-24 10:22:27 +01:00
|
|
|
name: Generate documentation
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
2021-06-04 11:19:22 +02:00
|
|
|
paths:
|
2021-10-25 18:54:46 +02:00
|
|
|
- website/**
|
2020-11-24 10:22:27 +01:00
|
|
|
|
|
|
|
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
|
2021-10-25 18:54:46 +02:00
|
|
|
cd website && yarn && GIT_USER="ivarconr" yarn deploy
|
2020-11-24 10:22:27 +01:00
|
|
|
env:
|
|
|
|
GH_NAME: 'ivarconr'
|
|
|
|
GH_EMAIL: 'ivarconr@gmail.com'
|
|
|
|
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
2021-09-02 14:36:18 +02:00
|
|
|
DEPLOYMENT_BRANCH: 'master'
|