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
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ jobs:
run: uv run nox

- name: Upload coverage reports to Codecov
if: >-
github.repository == 'Dependable-Intelligent-Systems-Lab/xwhy' &&
(github.event_name != 'pull_request' ||
github.event.pull_request.head.repo.full_name == 'Dependable-Intelligent-Systems-Lab/xwhy')
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
37 changes: 28 additions & 9 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ on:

concurrency:
group: documentation-${{ github.ref }}
cancel-in-progress: true
cancel-in-progress: false

permissions:
contents: write
contents: read

jobs:
build-and-deploy:
build-docs:
if: >-
github.repository == 'Dependable-Intelligent-Systems-Lab/xwhy' &&
(github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success')
Expand Down Expand Up @@ -88,11 +88,30 @@ jobs:
grep -q "Release history" site/release-notes/index.html
! grep -q "index.md" site/llms.txt

- name: Deploy Validated Documentation
- name: Upload GitHub Pages artifact
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
uses: peaceiris/actions-gh-pages@v4
uses: actions/upload-pages-artifact@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./site
force_orphan: true
path: ./site

deploy:
# Repository Settings > Pages > Build and deployment > Source: GitHub Actions.
if: >-
github.repository == 'Dependable-Intelligent-Systems-Lab/xwhy' &&
github.ref == 'refs/heads/main' &&
github.event_name != 'pull_request'
needs: build-docs
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Configure GitHub Pages
uses: actions/configure-pages@v5

- name: Deploy validated documentation
id: deployment
uses: actions/deploy-pages@v4
3 changes: 3 additions & 0 deletions .github/workflows/pagespeed-audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ permissions:

jobs:
mobile-audit:
if: >-
github.repository == 'Dependable-Intelligent-Systems-Lab/xwhy' &&
github.event_name != 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Wait for GitHub Pages propagation
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
jobs:
pypi-publish:
name: Build, Publish, and Release
if: github.repository == 'Dependable-Intelligent-Systems-Lab/xwhy'
runs-on: ubuntu-latest

environment:
Expand Down Expand Up @@ -44,4 +45,4 @@ jobs:
uses: softprops/action-gh-release@v3
with:
generate_release_notes: true
files: dist/*
files: dist/*
Loading