Skip to content

Merge pull request #178 from oras-project/contributors/update-2024-12-06 #104

Merge pull request #178 from oras-project/contributors/update-2024-12-06

Merge pull request #178 from oras-project/contributors/update-2024-12-06 #104

Workflow file for this run

name: Update Docs
on:
push:
branches: [main]
jobs:
generate-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: gh-pages
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install Oras and Dependencies
run: |
root=$PWD
cd /tmp
git clone https://github.com/oras-project/oras-py
cd oras-py
pip install -e .
cd docs/
pip install -r requirements.txt
make html
cp -R $root/.git _build/html/.git
rm -rf $root
mv _build/html $root
cd $root
touch .nojekyll
ls
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: .