diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index 0bee86c..326ff0f 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -1,6 +1,10 @@ name: Publish Docs Workflow run-name: ${{ github.actor }} is publishing document artifacts 🚀 -on: [push, workflow_dispatch] +on: + push: + branches: + - master + jobs: Publish_Docs: runs-on: ubuntu-latest diff --git a/.github/workflows/validate-docs.yml b/.github/workflows/validate-docs.yml new file mode 100644 index 0000000..dcd1624 --- /dev/null +++ b/.github/workflows/validate-docs.yml @@ -0,0 +1,21 @@ +name: Validate Docs Workflow +run-name: ${{ github.actor }} is validating document source +on: [pull_request, workflow_dispatch] +jobs: + Validate_Docs: + runs-on: ubuntu-latest + steps: + - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." + - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" + - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." + - name: Check out repo + uses: actions/checkout@v4 + - name: Validate reST source + run: make test + - name: Build docs + run: make html + - name: List built files + run: | + ls ${{ github.workspace }}/_build/html + + - run: echo "🍏 This job's status is ${{ job.status }}."