Skip to content

Commit

Permalink
add workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
theguy951357 committed Jan 10, 2024
1 parent f3be008 commit 1d208be
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/docsdeploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# creates a release from master
# builds docs, pushes to docker hub and updates docs server

name: Docs_deploy

on:
workflow_dispatch:
inputs:
version:
description: "new version number"
required: true

jobs:

release:
uses: gravitl/netmaker-devops/.github/workflows/deploydocs.yml@master
with:
version: ${{ inputs.version }}
secrets: inherit
12 changes: 12 additions & 0 deletions .github/workflows/prcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
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: "."
17 changes: 17 additions & 0 deletions .github/workflows/readthedocsdeploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# copied from https://rtds-action.readthedocs.io/en/latest/
# need to get webhook token from readthedocs.
# You should also edit your webhook settings on GitHub by going to https://github.com/USERNAME/REPONAME/settings/hooks and clicking “Edit” next to the ReadTheDocs hook. On that page, you should un-check the Pushes option.
name: Docs
on: workflow_dispatch

jobs:
deploy_readthedocs:
name: "Deploy Readthedocs"
runs-on: ubuntu-latest
steps:
- name: Trigger RTDs build
uses: dfm/rtds-action@v1
with:
webhook_url: ${{ secrets.RTDS_WEBHOOK_URL }}
webhook_token: ${{ secrets.RTDS_WEBHOOK_TOKEN }}
commit_ref: ${{ github.ref }}

0 comments on commit 1d208be

Please sign in to comment.