Migrate device provisioning client #873
Workflow file for this run
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: CI-doxygen-publish | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ github.ref_name != 'master' }} | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
types: [closed] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
doxygen-publish: | |
runs-on: ubuntu-22.04 | |
if: (github.event_name == 'pull_request' && github.event.pull_request.merged) || github.event_name == 'workflow_dispatch' | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
path: iotivity-lite | |
- uses: webfactory/ssh-agent@v0.8.0 | |
with: | |
ssh-private-key: ${{ secrets.IOTIVITY_LITE_SSH_KEY }} | |
- name: doxygen_build_documentation | |
run: | | |
sudo apt-get update -y | |
sudo apt-get install doxygen | |
doxygen --version | |
cd ${{ github.workspace }}/iotivity-lite/tools | |
./build_doc.sh | |
- name: doxygen_copy-docs | |
run: | | |
cd ~/work | |
git clone git@github.com:iotivity/iotivity-lite-doxygen.git | |
cd iotivity-lite-doxygen | |
rm -rf docs | |
cp -r ${{ github.workspace }}/iotivity-lite/tools/html . | |
#Rename to "docs" | |
mv html docs | |
- name: doxygen_push-changes | |
run: | | |
cd ~/work/iotivity-lite-doxygen | |
git config --global user.name 'IoTivity Bot' | |
git config --global user.email 'github@iotivity.com' | |
git add . | |
git diff-index --quiet HEAD || git commit -m "Automatic publish from github.com/iotivity/iotivity-lite" | |
git push |