Parcl Labs SDK Readme Deploy #29
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: 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 |