1 name: "Deploy Documents for Tizen Docs"
9 DOCFX_FILE: docfx_tizen_docs.json
10 DEPLOY_BRANCH: tizen-docs-pages
11 CACHE_NAME: docfx-tizen-docs-pages-site
16 runs-on: [self-hosted, linux, x64]
18 image: tizendotnet/tizenfx-build-worker:2.1
21 - uses: actions/checkout@v2
23 repository: TizenAPI/TizenFX-Docs
25 - name: Checkout TizenFX sources
29 - name: Cache DocFX output
31 uses: actions/cache@v2
34 key: ${{ env.CACHE_NAME }}-${{ hashFiles('repos/commits') }}
36 - name: Build Documents
37 if: steps.cache-site.outputs.cache-hit != 'true'
42 - name: Archive Artifacts
44 tar cfz site.tar.gz _site/
46 - uses: actions/upload-artifact@v2
53 runs-on: ubuntu-latest
56 - uses: actions/download-artifact@v2
60 - name: Extract Artifacts
64 - name: Deploy GitHub Pages
65 uses: peaceiris/actions-gh-pages@v3
67 github_token: ${{ secrets.GITHUB_TOKEN }}
69 publish_branch: ${{ env.DEPLOY_BRANCH }}
70 user_name: 'TizenAPI-Bot'
71 user_email: 'tizenapi@samsung.com'
72 full_commit_message: 'Update documents'