diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml new file mode 100644 index 00000000..f8656ce8 --- /dev/null +++ b/.github/workflows/deploy.yaml @@ -0,0 +1,22 @@ +name: Sync `documentation` directory to ReadMe + +# Run workflow for every push to the `main` branch +on: + push: + branches: + - master + +jobs: + sync: + runs-on: ubuntu-latest + steps: + - name: Checkout this repo + uses: actions/checkout@v3 + + # Run GitHub Action to sync docs in `documentation` directory + - name: GitHub Action + # We recommend specifying a fixed version, i.e. @v8 + # Docs: https://docs.github.com/actions/using-workflows/workflow-syntax-for-github-actions#example-using-versioned-actions + uses: readmeio/rdme@v8 + with: + rdme: docs ./documentation --key=${{ secrets.README_API_KEY }} --version=2.0 \ No newline at end of file