fix: remove invalid exclude from defaults scope to fix assets/main.cs… #12
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 | |
| 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 | |