Delete .github/workflows directory
parent
b685045739
commit
09ed71f781
|
|
@ -1,18 +0,0 @@
|
|||
name: "Pull Request Docs Check"
|
||||
on:
|
||||
- pull_request
|
||||
|
||||
jobs:
|
||||
docs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: ammaraskar/sphinx-action@master
|
||||
with:
|
||||
docs-folder: "docs/"
|
||||
build-command: "make html"
|
||||
# Create an artifact of the html output.
|
||||
- uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: DocumentationHTML
|
||||
path: docs/_build/html/
|
||||
|
|
@ -1,40 +0,0 @@
|
|||
name: "Push Generate Docs"
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
jobs:
|
||||
docs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: ammaraskar/sphinx-action@master
|
||||
with:
|
||||
docs-folder: "docs/"
|
||||
build-command: "make html"
|
||||
# Create an artifact of the html output.
|
||||
- uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: DocumentationHTML
|
||||
path: docs/_build/html/
|
||||
# Publish built docs to gh-pages branch.
|
||||
# ===============================
|
||||
- name: Commit documentation changes
|
||||
run: |
|
||||
git clone https://github.com/M17-Project/M17_spec.git --branch gh-pages --single-branch gh-pages
|
||||
cp -r docs/_build/html/* gh-pages/
|
||||
cd gh-pages
|
||||
touch .nojekyll
|
||||
git config --local user.email "smiller@kc1awv.net"
|
||||
git config --local user.name "kc1awv"
|
||||
git add .
|
||||
git commit -m "Update live documentation" -a || true
|
||||
# The above command will fail if no changes were present, so we ignore
|
||||
# that.
|
||||
- name: Push changes
|
||||
uses: ad-m/github-push-action@master
|
||||
with:
|
||||
branch: gh-pages
|
||||
directory: gh-pages
|
||||
github_token: ${{ secrets.GH_TOKEN }}
|
||||
# ===============================
|
||||
Loading…
Reference in New Issue