Skip to content

Parcl Labs SDK Readme Deploy #29

Parcl Labs SDK Readme Deploy

Parcl Labs SDK Readme Deploy #29

Workflow file for this run

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: Get latest readme version 🔍
run: |
readme_version=$(python3 scripts/get_readme_version.py --key ${{ secrets.README_API_KEY }})
echo "readme_version=${readme_version}" >> $GITHUB_ENV
- name: Create README copy 📝
run:
python3 scripts/copy_readme.py --key ${{ secrets.README_API_KEY }}
- name: Deploy OpenAPI docs 🦉
uses: readmeio/[email protected]
with:
rdme: docs README_COPY.md --key=${{ secrets.README_API_KEY }} --version ${{ env.readme_version }}
- name: Cleanup 🧹
run: rm -f README_COPY.md