--- /dev/null
+name: update NPU_DDK_DOCS
+
+on:
+ schedule:
+ # scheduled workflow run on the latest commit on the default or base
+ # branch.
+ - cron: '00 01 * * 0'
+
+env:
+ BART_ID: ${{ secrets.BART_ID }}
+ BART_PW: ${{ secrets.BART_PW }}
+
+jobs:
+ update-documents:
+ runs-on: [ code-default ]
+ container:
+ image: aip-docker-local.bart.sec.samsung.net/n2s2_docker/bionic:latest
+ # for chroot-based build system
+ options: --privileged
+ credentials:
+ username: ${{ secrets.BART_ID }}
+ password : ${{ secrets.BART_PW }}
+
+ timeout-minutes: 30
+
+ steps:
+ - name: Clone your repository
+ uses: CODE-Actions/checkout@v2
+ - name: Create html using hotdoc
+ run: |
+ export LC_ALL=C.UTF-8
+ bash docs/gen-hotdoc.sh
+ mv docs/build/html ~/docs
+ shell: bash
+ - name: Upload docs
+ run: |
+ git config --global user.name "${{ secrets.GIT_ID }}"
+ git config --global user.email "${{ secrets.GIT_EMAIL }}"
+ git clone https://${{ secrets.GIT_ID }}:${{ secrets.GIT_PW }}@github.sec.samsung.net/AIP/NPU_DDK_DOCS.git
+
+ cd NPU_DDK_DOCS
+ rm -rf docs
+ mv ~/docs .
+
+ git remote set-url origin https://${{ secrets.GIT_ID }}:${{ secrets.GIT_PW }}@github.sec.samsung.net/AIP/NPU_DDK_DOCS.git
+ git add .
+ git commit -s -m "Update NPU-DDK Docs"
+ git push --set-upstream origin master
+ shell: bash