File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3939 runs-on : ubuntu-latest
4040 steps :
4141 - uses : actions/checkout@v3
42- with :
43- ref : api-doc
42+ - run : git checkout api-doc 2>/dev/null || git checkout -b api-doc
4443 - uses : actions/setup-python@v4
4544 with :
4645 python-version : 3.x
5049 path : " docs/api/"
5150
5251 # Enter `docs/`
52+ - run : mkdir -p docs/
5353 - run : cd docs/
54+ # TODO(#61): This should use the version's script
5455 - run : wget https://raw.githubusercontent.com/libhal/ci/refs/heads/main/scripts/add_version_to_switcher.py
5556 - run : python3 add_version_to_switcher.py ${{ github.ref_name }} "https://libhal.github.io/${{ github.event.repository.name }}/api"
5657 - run : rm add_version_to_switcher.py
6162 - run : git config user.email ci-bot@example.com
6263 - run : git add docs
6364 - run : git commit -m "API Docs for version ${{ github.ref_name }}"
64- - run : git push origin gh-pages
65+ - run : git push origin api-docs
6566 - name : Upload static files as artifact
6667 id : deployment
6768 uses : actions/upload-pages-artifact@v3
You can’t perform that action at this time.
0 commit comments