File: deploy.yml

package info (click to toggle)
dlpack 1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 472 kB
  • sloc: python: 277; ansic: 97; cpp: 64; makefile: 42; sh: 24
file content (39 lines) | stat: -rw-r--r-- 1,004 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: CI

on:
  push:
    branches:
      - main

jobs:
  test_linux:
    name: Deploy Docs
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
      with:
        submodules: recursive

    - name: Configuring Test Environment
      run: |
        sudo apt-get update
        sudo apt-get -y install build-essential doxygen ghp-import
        python3 -m pip install -U pip wheel

    - name: Installing dependencies
      run: |
        python3 -m pip install -r doc_requirements.txt

    - name: Generating Docs
      run: |
        make doc

    - name: Deploying on GitHub Pages
      run: |
        touch docs/build/.nojekyll
        git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
        git config --global user.email "dlpack-gh-actions-bot@nomail"
        git config --global user.name "dlpack-gh-actions-bot"
        ghp-import -m "Generate DLPack website" -b gh-pages docs/build
        git push origin gh-pages -f