Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 30 additions & 5 deletions cpp/.github/workflows/{% if add_docs %}docs.yaml{% endif %}.jinja
Original file line number Diff line number Diff line change
@@ -1,21 +1,46 @@
name: Publish Docs

on:
push:
branches:
- main
workflow_run:
workflows: ["Build Status"]
branches: [main]
types: [completed]
workflow_dispatch:

permissions:
actions: read
contents: write

jobs:
docs:
runs-on: ubuntu-latest
if: {% raw %}${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}{% endraw %}
steps:
- uses: actions/checkout@v6
- uses: actions-ext/python/setup@main
- run: uv pip install .[develop]
- run: uv pip install yardang

- name: Download dist from build
uses: actions/download-artifact@v7
with:
name: dist-ubuntu-latest-{{python_version_primary}}
path: dist
run-id: {% raw %}${{ github.event.workflow_run.id }}{% endraw %}
if: github.event_name == 'workflow_run'

- name: Install from wheel
run: |
uv pip install dist/*.whl
uv pip install yardang
if: github.event_name == 'workflow_run'

- name: Install from source (manual trigger)
run: |
uv pip install .[develop]
uv pip install yardang
if: github.event_name == 'workflow_dispatch'

- run: yardang build

- uses: peaceiris/actions-gh-pages@v4
with:
publish_branch: gh-pages
Expand Down
Original file line number Diff line number Diff line change
@@ -1,24 +1,47 @@
name: Publish Docs

on:
push:
branches:
- main
workflow_run:
workflows: ["Build Status"]
branches: [main]
types: [completed]
workflow_dispatch:

permissions:
actions: read
contents: write

jobs:
docs:
runs-on: ubuntu-latest
if: {% raw %}${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}{% endraw %}
steps:
- uses: actions/checkout@v6
- uses: actions-ext/python/setup@main
- uses: actions-ext/node/setup@main
- uses: mymindstorm/setup-emsdk@v16
- run: make develop
- run: uv pip install .
- run: uv pip install yardang

- name: Download dist from build
uses: actions/download-artifact@v7
with:
name: dist-ubuntu-latest-{{python_version_primary}}
path: dist
run-id: {% raw %}${{ github.event.workflow_run.id }}{% endraw %}
if: github.event_name == 'workflow_run'

- name: Install from wheel
run: |
uv pip install dist/*.whl
uv pip install yardang
if: github.event_name == 'workflow_run'

- name: Install from source (manual trigger)
run: |
make develop
uv pip install .
uv pip install yardang
if: github.event_name == 'workflow_dispatch'

- run: yardang build

- uses: peaceiris/actions-gh-pages@v4
with:
publish_branch: gh-pages
Expand Down
36 changes: 30 additions & 6 deletions js/.github/workflows/{% if add_docs %}docs.yaml{% endif %}.jinja
Original file line number Diff line number Diff line change
@@ -1,22 +1,46 @@
name: Publish Docs

on:
push:
branches:
- main
workflow_run:
workflows: ["Build Status"]
branches: [main]
types: [completed]
workflow_dispatch:

permissions:
actions: read
contents: write

jobs:
docs:
runs-on: ubuntu-latest
if: {% raw %}${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}{% endraw %}
steps:
- uses: actions/checkout@v6
- uses: actions-ext/python/setup@main
- uses: actions-ext/node/setup@main
- run: uv pip install .[develop]
- run: uv pip install yardang

- name: Download dist from build
uses: actions/download-artifact@v7
with:
name: dist-ubuntu-latest
path: dist
run-id: {% raw %}${{ github.event.workflow_run.id }}{% endraw %}
if: github.event_name == 'workflow_run'

- name: Install from wheel
run: |
uv pip install dist/*.whl
uv pip install yardang
if: github.event_name == 'workflow_run'

- name: Install from source (manual trigger)
run: |
uv pip install .[develop]
uv pip install yardang
if: github.event_name == 'workflow_dispatch'

- run: yardang build

- uses: peaceiris/actions-gh-pages@v4
with:
publish_branch: gh-pages
Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,46 @@
name: Publish Docs

on:
push:
branches:
- main
workflow_run:
workflows: ["Build Status"]
branches: [main]
types: [completed]
workflow_dispatch:

permissions:
actions: read
contents: write

jobs:
docs:
runs-on: ubuntu-latest
if: {% raw %}${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}{% endraw %}
steps:
- uses: actions/checkout@v6
- uses: actions-ext/python/setup@main
- uses: actions-ext/node/setup@main
- run: uv pip install .[develop]
- run: uv pip install yardang

- name: Download dist from build
uses: actions/download-artifact@v7
with:
name: dist-ubuntu-latest
path: dist
run-id: {% raw %}${{ github.event.workflow_run.id }}{% endraw %}
if: github.event_name == 'workflow_run'

- name: Install from wheel
run: |
uv pip install dist/*.whl
uv pip install yardang
if: github.event_name == 'workflow_run'

- name: Install from source (manual trigger)
run: |
uv pip install .[develop]
uv pip install yardang
if: github.event_name == 'workflow_dispatch'

- run: yardang build

- uses: peaceiris/actions-gh-pages@v4
with:
publish_branch: gh-pages
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,46 @@
name: Publish Docs

on:
push:
branches:
- main
workflow_run:
workflows: ["Build Status"]
branches: [main]
types: [completed]
workflow_dispatch:

permissions:
actions: read
contents: write

jobs:
docs:
runs-on: ubuntu-latest
if: {% raw %}${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}{% endraw %}
steps:
- uses: actions/checkout@v6
- uses: actions-ext/python/setup@main
- run: uv pip install .[develop]
- run: uv pip install yardang

- name: Download dist from build
uses: actions/download-artifact@v7
with:
name: dist-ubuntu-latest
path: dist
run-id: {% raw %}${{ github.event.workflow_run.id }}{% endraw %}
if: github.event_name == 'workflow_run'

- name: Install from wheel
run: |
uv pip install dist/*.whl
uv pip install yardang
if: github.event_name == 'workflow_run'

- name: Install from source (manual trigger)
run: |
uv pip install .[develop]
uv pip install yardang
if: github.event_name == 'workflow_dispatch'

- run: yardang build

- uses: peaceiris/actions-gh-pages@v4
with:
publish_branch: gh-pages
Expand Down
36 changes: 30 additions & 6 deletions rust/.github/workflows/{% if add_docs %}docs.yaml{% endif %}.jinja
Original file line number Diff line number Diff line change
@@ -1,22 +1,46 @@
name: Publish Docs

on:
push:
branches:
- main
workflow_run:
workflows: ["Build Status"]
branches: [main]
types: [completed]
workflow_dispatch:

permissions:
actions: read
contents: write

jobs:
docs:
runs-on: ubuntu-latest
if: {% raw %}${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}{% endraw %}
steps:
- uses: actions/checkout@v6
- uses: actions-ext/python/setup@main
- uses: actions-ext/rust/setup@main
- run: uv pip install .[develop]
- run: uv pip install yardang

- name: Download dist from build
uses: actions/download-artifact@v7
with:
name: dist-ubuntu-latest
path: dist
run-id: {% raw %}${{ github.event.workflow_run.id }}{% endraw %}
if: github.event_name == 'workflow_run'

- name: Install from wheel
run: |
uv pip install dist/*.whl
uv pip install yardang
if: github.event_name == 'workflow_run'

- name: Install from source (manual trigger)
run: |
uv pip install .[develop]
uv pip install yardang
if: github.event_name == 'workflow_dispatch'

- run: yardang build

- uses: peaceiris/actions-gh-pages@v4
with:
publish_branch: gh-pages
Expand Down
Original file line number Diff line number Diff line change
@@ -1,24 +1,47 @@
name: Publish Docs

on:
push:
branches:
- main
workflow_run:
workflows: ["Build Status"]
branches: [main]
types: [completed]
workflow_dispatch:

permissions:
actions: read
contents: write

jobs:
docs:
runs-on: ubuntu-latest
if: {% raw %}${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}{% endraw %}
steps:
- uses: actions/checkout@v6
- uses: actions-ext/python/setup@main
- uses: actions-ext/rust/setup@main
- uses: actions-ext/node/setup@main
- run: make develop
- run: uv pip install .
- run: uv pip install yardang

- name: Download dist from build
uses: actions/download-artifact@v7
with:
name: dist-ubuntu-latest
path: dist
run-id: {% raw %}${{ github.event.workflow_run.id }}{% endraw %}
if: github.event_name == 'workflow_run'

- name: Install from wheel
run: |
uv pip install dist/*.whl
uv pip install yardang
if: github.event_name == 'workflow_run'

- name: Install from source (manual trigger)
run: |
make develop
uv pip install .
uv pip install yardang
if: github.event_name == 'workflow_dispatch'

- run: yardang build

- uses: peaceiris/actions-gh-pages@v4
with:
publish_branch: gh-pages
Expand Down
Loading