Release v0.20.1: External Repository Support and Environment Manager … #24
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
| name: GitHub Pages | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "docs/**" | |
| - ".github/workflows/github-pages.yml" | |
| - "_config.yml" | |
| - "docs/Gemfile" | |
| - "docs/index.md" | |
| - "docs/assets/**" | |
| - "LICENSE.md" | |
| - "TRADEMARKS.md" | |
| workflow_dispatch: | |
| inputs: | |
| branch: | |
| description: "Branch to deploy (defaults to main)" | |
| required: false | |
| default: "main" | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| name: Build GitHub Pages | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| ref: ${{ github.event.inputs.branch || github.ref }} | |
| - name: Setup Ruby (for Jekyll) | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: "3.2" | |
| bundler-cache: false | |
| working-directory: ./docs | |
| - name: Install Jekyll dependencies | |
| run: | | |
| cd docs | |
| bundle config set --local path 'vendor/bundle' | |
| bundle install --jobs 1 --retry 3 | |
| - name: Copy root files to docs | |
| run: | | |
| # Copy important root files to docs directory for inclusion in GitHub Pages | |
| cp LICENSE.md docs/LICENSE.md | |
| cp TRADEMARKS.md docs/TRADEMARKS.md | |
| cp _config.yml docs/_config.yml | |
| - name: Build with Jekyll | |
| run: | | |
| cd docs | |
| bundle exec jekyll build --destination ../_site | |
| # Fix CSS path: Jekyll outputs main.css at main/index.css due to permalink pattern | |
| # Copy it to assets/main.css where the HTML expects it | |
| if [ -f ../_site/main/index.css ]; then | |
| cp ../_site/main/index.css ../_site/assets/main.css | |
| fi | |
| env: | |
| JEKYLL_ENV: production | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v4 | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: _site | |
| deploy: | |
| name: Deploy to GitHub Pages | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |