Skip to content

Commit

Permalink
Fix docs build on master, include extra badge
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelmegitt committed Dec 21, 2021
1 parent dc4e7be commit 37bb184
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/docs_and_ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ jobs:
python setup.py build_sphinx
- name: Publish to GitHub Pages
env:
REF_NAME: ${{ github.ref }}
if: ${{ 'refs/head/master' == env.REF_NAME }}
GITHUB_REF: ${{ github.ref }}
if: ${{ env.GITHUB_REF == 'refs/head/master' }}
uses: JamesIves/github-pages-deploy-action@4.1.7
with:
branch: gh-pages
Expand All @@ -74,10 +74,11 @@ jobs:
.nojekyll
- name: Skip publishing to GitHub Pages
env:
REF_NAME: ${{ github.ref }}
if: ${{ 'refs/head/master' != env.REF_NAME }}
GITHUB_REF: ${{ github.ref }}
if: ${{ env.GITHUB_REF != 'refs/head/master' }}
run: |
echo "This is NOT a push to master branch, not pushing to github-pages"
echo "ref is ${{ env.GITHUB_REF }}"
- name: Build notification
if: always()
uses: edge/simple-slack-notify@v1.1.2
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
![Build Status](https://github.com/ebu/ebu-tt-live-toolkit/actions/workflows/test.yml/badge.svg)
![Build Status](https://github.com/ebu/ebu-tt-live-toolkit/actions/workflows/docs_and_ui.yml/badge.svg)
[![Coverage Status](https://coveralls.io/repos/github/ebu/ebu-tt-live-toolkit/badge.svg?branch=ebu_master)](https://coveralls.io/github/ebu/ebu-tt-live-toolkit?branch=ebu_master)

# ebu-tt-live-toolkit
Expand Down

0 comments on commit 37bb184

Please sign in to comment.