Merge pull request #71 from Sienna-Platform/multidocs #51
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Marketing / landing pages only (Jekyll). Aggregated Documenter docs are deployed | |
| # separately by sienna-docs-aggregate.yml so a marketing-only failure or rebuild | |
| # cannot clobber last-good SiennaDocs on gh-pages. | |
| # Live site: https://sienna-platform.github.io/Sienna/ | |
| name: Deploy Jekyll site to Pages | |
| on: | |
| push: | |
| branches: ["main"] | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| # Shared with docs-aggregate and PR preview; queue rather than cancel. | |
| concurrency: | |
| group: gh-pages | |
| cancel-in-progress: false | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: '3.2' | |
| bundler-cache: true | |
| cache-version: 0 | |
| - name: Build with Jekyll | |
| run: bundle exec jekyll build --baseurl "/Sienna" | |
| env: | |
| JEKYLL_ENV: production | |
| - name: Remove SiennaDocs from marketing site | |
| # Exclude may still leave build/ via include; never ship docs via this job. | |
| run: rm -rf _site/SiennaDocs | |
| - name: Deploy to GitHub Pages | |
| uses: JamesIves/github-pages-deploy-action@v4 | |
| with: | |
| folder: _site | |
| branch: gh-pages | |
| clean: false | |
| force: false |