[NUI] Add InterceptKeyEvent
[platform/core/csapi/tizenfx.git] / .github / workflows / deploy-documents.yml
1 name: "Deploy Documents"
2
3 on:
4   schedule:
5   - cron: "0 16 * * *"
6   workflow_dispatch:
7
8 jobs:
9
10   build:
11     runs-on: [self-hosted, linux, x64]
12     container:
13       image: tizendotnet/tizenfx-build-worker:2.0
14
15     steps:
16     - uses: actions/checkout@v2
17       with:
18         repository: TizenAPI/TizenFX-Docs
19
20     - name: Checkout TizenFX sources
21       run: |
22         ./build.sh clone
23
24     - name: Cache DocFX output
25       id: cache-site
26       uses: actions/cache@v2
27       with:
28         path: _site
29         key: docfx-gh-pages-site-${{ hashFiles('repos/commits') }}
30
31     - name: Build Documents
32       if: steps.cache-site.outputs.cache-hit != 'true'
33       run: |
34         ./build.sh restore
35         ./build.sh build
36         ./build.sh index
37
38     - name: Archive Artifacts
39       run: |
40         tar cfz site.tar.gz _site/
41
42     - uses: actions/upload-artifact@v2
43       with:
44         name: documents
45         path: site.tar.gz
46
47   deploy:
48     needs: [build]
49     runs-on: ubuntu-latest
50
51     steps:
52     - uses: actions/download-artifact@v2
53       with:
54         name: documents
55
56     - name: Extract Artifacts
57       run: |
58         tar xfz site.tar.gz
59
60     - name: Deploy GitHub Pages
61       uses: peaceiris/actions-gh-pages@v3
62       with:
63         github_token: ${{ secrets.GITHUB_TOKEN }}
64         publish_dir: ./_site
65         publish_branch: gh-pages
66         user_name: 'TizenAPI-Bot'
67         user_email: 'tizenapi@samsung.com'
68         full_commit_message: 'Update documents'