33 lines
855 B
YAML
33 lines
855 B
YAML
name: Generate firmware Doxygen
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 0 * * *'
|
|
|
|
jobs:
|
|
generate:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Install prerequisite software
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install doxygen graphviz sshpass
|
|
|
|
- name: Set FTP variables
|
|
env:
|
|
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
|
|
run: |
|
|
if [ "${{github.ref}}" = "refs/heads/master" ]; then
|
|
echo "::set-env name=RUSEFI_SSH_SERVER::${{secrets.RUSEFI_SSH_SERVER}}";
|
|
echo "::set-env name=RUSEFI_SSH_USER::${{secrets.RUSEFI_SSH_USER}}";
|
|
echo "::set-env name=RUSEFI_SSH_PASS::${{secrets.RUSEFI_SSH_PASS}}";
|
|
fi
|
|
|
|
- name: Generate documentation
|
|
run: bash ./misc/jenkins/generate_doxygen/gen_upload_docs.sh
|