Temp remove the cname until dns is resolved #7
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 | |
| permissions: | |
| id-token: write | |
| contents: write | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| # Add Rust caching | |
| - uses: actions/cache@v3 | |
| with: | |
| path: | | |
| ~/.cargo/bin/ | |
| ~/.cargo/registry/index/ | |
| ~/.cargo/registry/cache/ | |
| ~/.cargo/git/db/ | |
| key: ${{ runner.os }}-cargo-${{ hashFiles('**/mojoproject.toml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-cargo- | |
| # Add Modular caching | |
| - uses: actions/cache@v3 | |
| with: | |
| path: | | |
| ~/.modular | |
| ~/.cache/modular | |
| key: ${{ runner.os }}-modular-${{ hashFiles('**/mojoproject.toml') }} | |
| - name: Install Magic CLI | |
| run: | | |
| curl -ssL https://magic.modular.com/ | bash | |
| . $HOME/.bashrc | |
| echo "$HOME/.modular/bin" >> $GITHUB_PATH | |
| export PATH="$HOME/.modular/bin:$PATH" | |
| - name: Build | |
| shell: bash | |
| run: | | |
| . $HOME/.bashrc | |
| cd book | |
| magic run build-book | |
| - name: Deploy | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_branch: gh-pages | |
| publish_dir: ./book/html | |
| allow_empty_commit: true |