#3067 - Ensure attachments are included in re-send attempts (#3071) #692
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: Deploy docs | |
| on: | |
| push: | |
| branches: ["master"] | |
| pull_request: | |
| branches: ["master"] | |
| workflow_dispatch: | |
| # Grant permissions: | |
| # - contents:read to checkout repository code | |
| # - pages:write to deploy to GitHub Pages | |
| # - id-token:write to authenticate via OIDC | |
| # See: https://docs.github.com/en/actions/how-tos/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| runs-on: ubuntu-24.04 | |
| env: | |
| MDBOOK_VERSION: 0.4.51 | |
| MDBOOK_SHA256: d611bcde080f1ab9932ca1724197ac2c23bb8c5d64581bb5da238bfbb4d39184 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Cache mdBook | |
| id: cache-mdbook | |
| uses: actions/cache@v4 | |
| with: | |
| path: /usr/local/bin/mdbook | |
| key: mdbook-${{ env.MDBOOK_VERSION }}-${{ env.MDBOOK_SHA256 }} | |
| - name: Install mdBook | |
| if: steps.cache-mdbook.outputs.cache-hit != 'true' | |
| run: | | |
| curl -L -o mdbook.tar.gz "https://github.com/rust-lang/mdBook/releases/download/v${MDBOOK_VERSION}/mdbook-v${MDBOOK_VERSION}-x86_64-unknown-linux-gnu.tar.gz" | |
| echo "${MDBOOK_SHA256} mdbook.tar.gz" | sha256sum -c - | |
| tar -xzf mdbook.tar.gz | |
| chmod +x mdbook | |
| sudo mv mdbook /usr/local/bin/ | |
| - name: Build with mdBook | |
| run: cd docs && mdbook build | |
| - name: Setup GitHub Pages | |
| id: pages | |
| if: ${{ github.event_name == 'push' }} | |
| uses: actions/configure-pages@v5 | |
| - name: Upload artifact | |
| if: ${{ github.event_name == 'push' }} | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: ./docs/book | |
| deploy: | |
| if: ${{ github.event_name == 'push' }} | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-24.04 | |
| needs: build | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |