docs: mark repository as deprecated #538
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: Build mipBook | |
| on: | |
| push: | |
| branches: | |
| - '*' | |
| pull_request: | |
| branches: | |
| - '*' | |
| env: | |
| MIPBOOK_VERSION: 0.4.43 | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| permissions: | |
| contents: write | |
| pull-requests: read | |
| steps: | |
| - name: Checkout new repo | |
| uses: actions/checkout@v3 | |
| - name: Install Dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y jq curl | |
| - name: Install mipbook | |
| run: | | |
| mkdir mipbook | |
| curl -Lf https://github.com/rust-lang/mdBook/releases/download/v${{ env.MIPBOOK_VERSION }}/mdbook-v${{ env.MIPBOOK_VERSION }}-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mipbook | |
| echo `pwd`/mipbook >> $GITHUB_PATH | |
| # For the MIP-repo, checkout the main branch (this is optional for the MIP-testing repo) | |
| - name: Checkout main branch script | |
| run: | | |
| git fetch origin main | |
| git checkout origin/main -- generate_book.sh | |
| chmod +x generate_book.sh | |
| - name: Generate Book | |
| run: ./generate_book.sh | |
| - name: Deploy to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./book |