ci: fix Release Docs Jekyll build by pointing bundler at docs/Gemfile #3
Workflow file for this run
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: Release Docs | |
| on: | |
| push: | |
| tags: | |
| - 'v*.*.*' | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: pages-release | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: '3.3' | |
| bundler-cache: true | |
| working-directory: docs | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v5 | |
| - name: Extract version from tag | |
| id: version | |
| run: echo "version=${GITHUB_REF_NAME#v}" >> "$GITHUB_OUTPUT" | |
| # Project Pages serve under /Meshtastic-Apple (no custom domain), so the | |
| # released site needs that baseurl for links and assets to resolve. | |
| - name: Build with Jekyll | |
| run: bundle exec jekyll build --source docs --destination _site --baseurl "/Meshtastic-Apple" | |
| env: | |
| JEKYLL_ENV: production | |
| DOCS_VERSION: ${{ steps.version.outputs.version }} | |
| # The Gemfile lives in docs/ (where setup-ruby installed the bundle), but this | |
| # step runs from the repo root — point bundler at it so `bundle exec` resolves. | |
| BUNDLE_GEMFILE: ${{ github.workspace }}/docs/Gemfile | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| deploy: | |
| 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 |