summaryrefslogtreecommitdiff
path: root/.github/workflows/deploy-github-pages.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/deploy-github-pages.yml')
-rw-r--r--.github/workflows/deploy-github-pages.yml40
1 files changed, 40 insertions, 0 deletions
diff --git a/.github/workflows/deploy-github-pages.yml b/.github/workflows/deploy-github-pages.yml
new file mode 100644
index 000000000..d474a2754
--- /dev/null
+++ b/.github/workflows/deploy-github-pages.yml
@@ -0,0 +1,40 @@
+name: Build and deploy github page
+
+on:
+ schedule:
+ # Every weeks
+ - cron: '30 19 * * SUN'
+ workflow_dispatch:
+ inputs:
+ publish:
+ description: 'Push to github page branch or not'
+ required: true
+ default: false
+ type: boolean
+
+jobs:
+ build_and_deploy:
+ name: 'Deploy doxygen page'
+ runs-on: 'ubuntu-latest'
+ if: github.repository_owner == 'Samsung'
+
+ steps:
+ - name: 'Checkout'
+ uses: actions/checkout@v3
+ - name: 'Generate HTML'
+ uses: mattnotmitt/doxygen-action@v1.9
+ with:
+ doxyfile-path: 'infra/doxygen/Doxyfile'
+ - name: 'Tar artifact'
+ run: tar -zcf doxygen.tar.gz -C doxygen/html ./
+ - name: 'Generate artifact'
+ uses: actions/upload-artifact@v3
+ with:
+ name: doxygen-html
+ path: doxygen.tar.gz
+ - name: 'Deploy'
+ if: ${{ github.event_name == 'schedule' || github.event.inputs.publish == 'true' }}
+ uses: JamesIves/github-pages-deploy-action@v4
+ with:
+ folder: doxygen/html
+ branch: gh-pages