Skip to content

Fix accel examples and related CI issues (#1557) #166

Fix accel examples and related CI issues (#1557)

Fix accel examples and related CI issues (#1557) #166

Workflow file for this run

name: deploy-pages
on:
push:
branches:
- develop
workflow_dispatch:
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: pages
cancel-in-progress: false
jobs:
build-docs:
uses: ./.github/workflows/doc.yml
build-site:
runs-on: ubuntu-latest
needs: build-docs
steps:
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Check out Celeritas doc base
uses: actions/checkout@v4
with:
ref: doc/gh-pages-base
- name: Install Python packages
run: |
pip install --upgrade pip
pip install -r scripts/requirements.txt
- name: Update publications
id: update
continue-on-error: true
env:
ZOTERO_TOKEN: ${{secrets.ZOTERO_TOKEN}}
ZOTERO_GROUP: 2380941
run: |
python scripts/generate-pubs.py -g $ZOTERO_GROUP
echo "DIFF_COUNT=$(git diff -- publications.md | wc -l)" >> $GITHUB_OUTPUT
- name: Push updated publications
if: ${{steps.update.outcome != 'failure'
&& fromJSON(steps.update.outputs.DIFF_COUNT) > 0}}
continue-on-error: true
run: |
git config --global user.name "Github Actions"
git config --global user.email "${{github.triggering_actor}}@users.noreply.github.com"
git commit -am "Update publications"
git push
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Download doc and user artifacts
uses: actions/download-artifact@v4
- name: Rename artifacts
run: |
mv doc-dev dev
mv doc-user user
- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
deploy:
runs-on: ubuntu-latest
needs: build-site
permissions:
contents: read
deployments: write
pages: write
id-token: write
environment:
name: github-pages
url: ${{steps.deployment.outputs.page_url}}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
# vim: set nowrap tw=100: