2020-07-11 19:57:00 -07:00
|
|
|
name: Generate documentation
|
|
|
|
|
|
|
|
on:
|
2020-07-12 07:08:32 -07:00
|
|
|
schedule:
|
|
|
|
- cron: '0 0 * * *'
|
2020-07-11 19:57:00 -07:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
generate:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
fetch-depth: 0
|
|
|
|
|
2021-02-01 15:31:36 -08:00
|
|
|
- name: Install ncftp, kicad, doxygen, and yq
|
2020-07-11 19:57:00 -07:00
|
|
|
run: |
|
2021-02-01 15:31:36 -08:00
|
|
|
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CC86BB64
|
|
|
|
sudo add-apt-repository ppa:rmescandon/yq
|
2021-01-28 16:41:24 -08:00
|
|
|
sudo add-apt-repository ppa:kicad/kicad-5.1-releases
|
2020-07-11 19:57:00 -07:00
|
|
|
sudo apt-get update
|
2021-02-01 15:31:36 -08:00
|
|
|
sudo apt-get install ncftp kicad doxygen yq
|
2020-07-11 19:57:00 -07:00
|
|
|
|
|
|
|
- name: Set FTP variables
|
2020-11-18 15:59:02 -08:00
|
|
|
env:
|
|
|
|
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
|
2021-01-28 16:41:24 -08:00
|
|
|
INTERACTIVE_HTML_BOM_NO_DISPLAY: 'true'
|
2020-07-11 19:57:00 -07:00
|
|
|
run: |
|
|
|
|
if [ "${{github.event_name}}" = "push" ] && [ "${{github.ref}}" = "refs/heads/master" ]; then
|
2020-11-18 15:44:53 -08:00
|
|
|
echo "::set-env name=RUSEFI_FTP_SERVER::${{secrets.RUSEFI_FTP_SERVER}}";
|
|
|
|
echo "::set-env name=RUSEFI_DOXYGEN_FTP_USER::${{secrets.RUSEFI_DOXYGEN_FTP_USER}}";
|
|
|
|
echo "::set-env name=RUSEFI_DOXYGEN_FTP_PASS::${{secrets.RUSEFI_DOXYGEN_FTP_PASS}}";
|
2020-07-11 19:57:00 -07:00
|
|
|
fi
|
|
|
|
|
|
|
|
- name: Generate documentation
|
2021-01-28 16:41:24 -08:00
|
|
|
run: bash ./misc/jenkins/generate_doxygen/gen_upload_docs.sh
|