Parcl Labs SDK Readme Deploy #17
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: | | |
echo "readme_version=$(head -n 1 parcllabs/readme_version)" >> $GITHUB_ENV | |
- 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 }} --version ${{ env.readme_version }} | |
- name: Cleanup 🧹 | |
run: rm -f README_COPY.md |