Optimize shifting routine based on recent changes (Test drive) #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Remote deploy code documentation | |
on: | |
push: | |
branches: ["dev", "main"] | |
env: | |
BRANCH_NAME: ${{ github.head_ref || github.ref_name }} | |
jobs: | |
deploy_docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: "recursive" | |
- name: Apt update | |
run: sudo apt-get update | |
- name: Install doxygen | |
run: sudo apt-get install doxygen | |
- name: Install graphviz | |
run: sudo apt-get install graphviz | |
- name: Build documentation | |
run: doxygen | |
- name: echo path | |
run: echo "/var/www/html/${{ env.BRANCH_NAME }}" | |
- name: Deploy docs | |
uses: appleboy/[email protected] | |
with: | |
source: "html/*" | |
target: "/var/www/html/fw/${{ env.BRANCH_NAME }}" | |
username: ${{ secrets.USER }} | |
host: ${{ secrets.HOST }} | |
key: ${{ secrets.PRIVATE_KEY }} | |
rm: true | |