Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
yymao committed Dec 6, 2020
1 parent 3b820ef commit 1cdc402
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 40 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: CI Test
on:
push:
branches: [ master ]
paths-ignore:
- '.github/workflows/create-release.yml'
- 'docs-src/**'
- 'README.md'
pull_request:
branches: [ master ]

Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,37 @@ jobs:
run: |
python setup.py sdist
twine upload dist/*
update-docs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-python@v2
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install sphinx numpydoc
pip install .
- name: Build docs
run: |
cd docs-src
make
cd ..
- name: Check out docs branch
run: |
git checkout docs
cp -r docs-build/* ./
rm -rf docs-build
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
token: ${{ secrets.GITHUB_TOKEN }}
title: "[bot] update documentation"
base: docs
branch: actions/update-docs
40 changes: 0 additions & 40 deletions .github/workflows/update-docs.yaml

This file was deleted.

0 comments on commit 1cdc402

Please sign in to comment.