Parcl Labs SDK Readme Deploy #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Parcl Labs SDK Readme Deploy | |
on: | |
workflow_dispatch: | |
workflow_run: | |
workflows: ['Publish Package'] | |
types: [completed] | |
branches: [main] | |
jobs: | |
readme-deploy: | |
runs-on: ubuntu-latest | |
if: ${{ (github.event.workflow_run.conclusion == 'success') || (github.event_name == 'workflow_dispatch') }} | |
steps: | |
- name: Check out repo 📚 | |
uses: actions/checkout@v3 | |
- name: Create README copy | |
run: | |
python3 scripts/copy_readme.py | |
- name: Deploy OpenAPI docs 🦉 | |
uses: readmeio/[email protected] | |
with: | |
rdme: docs README_COPY.md --key=${{ secrets.README_API_KEY }} | |
- name: Cleanup 🧹 | |
run: rm -f README_COPY.md |