ontology
This commit is contained in:
54
ontology_platform/vendored/ontocast/.github/workflows/build-docs.yml
vendored
Normal file
54
ontology_platform/vendored/ontocast/.github/workflows/build-docs.yml
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
name: Build GitHub Pages
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- 'docs/**'
|
||||
- 'mkdocs.yml'
|
||||
- 'ontocast/**' # Check this path
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
pages: write
|
||||
id-token: write
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.12'
|
||||
- name: Install uv
|
||||
uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
version: "0.9.5"
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
uv sync --group docs --no-group dev
|
||||
- name: Build site
|
||||
run: |
|
||||
uv run mkdocs build --site-dir _site
|
||||
- name: Upload Pages artifact
|
||||
uses: actions/upload-pages-artifact@v3
|
||||
with:
|
||||
path: _site
|
||||
|
||||
deploy:
|
||||
needs: build
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Deploy to GitHub Pages
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@v4
|
||||
20
ontology_platform/vendored/ontocast/.github/workflows/pre-commit.yml
vendored
Normal file
20
ontology_platform/vendored/ontocast/.github/workflows/pre-commit.yml
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
name: pre-commit
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
pre-commit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install uv
|
||||
uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
version: "0.9.28"
|
||||
- name: Install dependencies (including dev)
|
||||
run: uv sync --group dev
|
||||
- name: Run pre-commit
|
||||
run: uv run pre-commit run --all-files
|
||||
35
ontology_platform/vendored/ontocast/.github/workflows/pypi-publish.yml
vendored
Normal file
35
ontology_platform/vendored/ontocast/.github/workflows/pypi-publish.yml
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
name: Upload Python Package to PyPI
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
pypi-publish:
|
||||
runs-on: ubuntu-latest
|
||||
environment:
|
||||
name: pypi
|
||||
url: https://pypi.org/p/ontocast
|
||||
permissions:
|
||||
id-token: write
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.12'
|
||||
- name: Install uv
|
||||
uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
version: "0.9.5"
|
||||
- name: Build and publish
|
||||
run: |
|
||||
uv build
|
||||
uv publish
|
||||
env:
|
||||
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
||||
Reference in New Issue
Block a user