Merge pull request #163 from fcendesu/codex/next-roadmap-batch #21
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: Docs Site | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - .github/workflows/docs-site.yml | |
| - Cargo.toml | |
| - Cargo.lock | |
| - assets/themes/** | |
| - site/** | |
| - src/** | |
| workflow_dispatch: | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true" | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: docs-site | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| name: Build docs site | |
| runs-on: ubuntu-latest | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true" | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Configure Pages | |
| uses: actions/configure-pages@v5 | |
| - name: Install stable toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Cache cargo and target | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| key: docs-site | |
| - name: Build Rustipo | |
| run: cargo build --release --locked | |
| - name: Build docs site | |
| working-directory: site | |
| run: ../target/release/rustipo build | |
| - name: Upload Pages artifact | |
| uses: actions/upload-pages-artifact@v4 | |
| with: | |
| path: site/dist | |
| deploy: | |
| name: Deploy docs site | |
| runs-on: ubuntu-latest | |
| needs: build | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true" | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |