未验证 提交 7474c057 编写于 作者: L Lyon 提交者: GitHub

add requirements.txt for api-docs (#3671)

* add requirements.txt for api-docs

* change url of oneflow-whl

* add actions to update api docs

* fir curl cmd

* fix yml fmt
Co-authored-by: NShenghang Tsai <jackalcooper@gmail.com>
上级 8d02bbcb
......@@ -22,6 +22,9 @@ jobs:
docker run --rm -v $PWD:/p -w /p busybox chmod -R o+w .
- uses: actions/checkout@v2
- name: Build OneFlow
env:
OSS_ACCESS_KEY_ID: ${{ secrets.OSS_ACCESS_KEY_ID }}
OSS_ACCESS_KEY_SECRET: ${{ secrets.OSS_ACCESS_KEY_SECRET }}
run: |
export ONEFLOW_CI_TMP_DIR=$HOME/ci-tmp-rel-102
docker run --rm -v $ONEFLOW_CI_TMP_DIR/:$HOME/ci-tmp/ busybox rm -rf $HOME/ci-tmp/wheelhouse
......@@ -42,6 +45,12 @@ jobs:
python3 -m pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
python3 -m pip install oss2 beautifulsoup4 --user
python3 tools/create_pip_index.py --dir_key staging/${dir} -b oneflow-static --index_key=staging/${git_branch}/pip.index.html
- name: Update API docs
if: github.ref == 'refs/heads/master'
env:
READTHEDOCS_TOKEN: ${{ secrets.READTHEDOCS_TOKEN }}
run: |
curl -X POST -d "branches=master" -d "token=${READTHEDOCS_TOKEN}" https://readthedocs.org/api/v2/webhook/oneflow/135376/
pack_src:
name: Pack source code
runs-on: ubuntu-latest
......
Sphinx==2.2.0
recommonmark==0.6.0
sphinx_material==0.0.30
sphinx_rtd_theme==0.5.0
--find-links https://oneflow-static.oss-cn-beijing.aliyuncs.com/staging/master/pip.index.html
oneflow_cu102
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册