[Testing] Making auto docs update PR work again (#1662) #748
Workflow file for this run
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: release | |
on: | |
push: | |
branches: [abc-testing-123] | |
env: | |
PYTHON_VERSION: '3.8' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- name: Install full dependencies | |
run: | | |
python3 -m pip install --upgrade pip poetry | |
poetry config virtualenvs.create false | |
poetry install -E all | |
- name: Build package | |
run: poetry build | |
- name: Build docs | |
run: cd docs && make html | |
- name: Push code snippets to service-contracts | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
python3 scripts/generate_code_snippets.py > python-sdk-examples.json | |
./scripts/deploy_code_snippets.sh || echo 'PR failed. There is probably nothing to commit' |