Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Branch Deploys #32

Merged
merged 2 commits into from
Apr 27, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 16 additions & 7 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
test:
# The type of runner that the job will run on
runs-on: ubuntu-latest

Expand All @@ -24,17 +24,26 @@ jobs:
with:
fetch-depth: 0

- name: Sphinx Build
- name: Sphinx Build and Test
uses: ammaraskar/sphinx-action@0.4
with:
pre-build-command: "apt-get install -y git"
docs-folder: '.'
build-command: "sphinx-build -aE -W -b dirhtml source build"

- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/pull/})"
id: extract_branch

preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Sphinx Build
uses: ammaraskar/sphinx-action@0.4
with:
pre-build-command: "apt-get install -y git"
docs-folder: '.'
build-command: "sphinx-build -aE -b dirhtml source build"

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
Expand Down