Skip to content

refactor: update CMake target refs to snake_case ecosystem names (#1056) #73

refactor: update CMake target refs to snake_case ecosystem names (#1056)

refactor: update CMake target refs to snake_case ecosystem names (#1056) #73

Workflow file for this run

# GitHub Pages Deployment Workflow
# Builds and deploys documentation to GitHub Pages
#
# Triggers:
# - Push to main branch (docs changes)
# - Manual workflow dispatch
name: Deploy Documentation
on:
push:
branches: [main]
paths:
- 'docs/**'
- '.github/workflows/pages.yml'
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
name: Build Documentation
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v6
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
bundler-cache: true
working-directory: docs
- name: Create Gemfile if not exists
working-directory: docs
run: |
if [ ! -f Gemfile ]; then
cat > Gemfile << 'EOF'
source "https://rubygems.org"
gem "github-pages", group: :jekyll_plugins
gem "jekyll-remote-theme"
gem "webrick"
EOF
fi
- name: Install dependencies
working-directory: docs
run: bundle install
- name: Build with Jekyll
working-directory: docs
run: bundle exec jekyll build --baseurl "/pacs_system"
env:
JEKYLL_ENV: production
- name: Upload artifact
uses: actions/upload-pages-artifact@v4
with:
path: docs/_site
deploy:
name: Deploy to GitHub Pages
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4