diff --git a/.github/workflows/docsdeploy.yml b/.github/workflows/docsdeploy.yml new file mode 100644 index 00000000..cf545a4e --- /dev/null +++ b/.github/workflows/docsdeploy.yml @@ -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 \ No newline at end of file diff --git a/.github/workflows/prcheck.yml b/.github/workflows/prcheck.yml new file mode 100644 index 00000000..646be8d8 --- /dev/null +++ b/.github/workflows/prcheck.yml @@ -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: "." \ No newline at end of file diff --git a/.github/workflows/readthedocsdeploy.yml b/.github/workflows/readthedocsdeploy.yml new file mode 100644 index 00000000..7f0cf84e --- /dev/null +++ b/.github/workflows/readthedocsdeploy.yml @@ -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 }} \ No newline at end of file