zed/.github/workflows/deploy_cloudflare.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

65 lines
2.1 KiB
YAML
Raw Normal View History

name: Deploy Docs
on:
push:
branches:
- main
jobs:
deploy-docs:
name: Deploy Docs
runs-on: ubuntu-latest
steps:
- name: Checkout repo
Pin dependencies (#15188) [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [2428392/gh-truncate-string-action](https://togithub.com/2428392/gh-truncate-string-action) | action | pinDigest | -> `67b1b81` | | [actions/checkout](https://togithub.com/actions/checkout) | action | pinDigest | -> `692973e` | | [actions/checkout](https://togithub.com/actions/checkout) | action | pinDigest | -> `ee0669b` | | [actions/setup-node](https://togithub.com/actions/setup-node) | action | pinDigest | -> `1e60f62` | | [actions/setup-python](https://togithub.com/actions/setup-python) | action | pinDigest | -> `39cd149` | | [actions/upload-artifact](https://togithub.com/actions/upload-artifact) | action | pinDigest | -> `0b2256b` | | [cloudflare/wrangler-action](https://togithub.com/cloudflare/wrangler-action) | action | pinDigest | -> `f84a562` | | [dcarbone/install-jq-action](https://togithub.com/dcarbone/install-jq-action) | action | pinDigest | -> `8867ddb` | | [peaceiris/actions-mdbook](https://togithub.com/peaceiris/actions-mdbook) | action | pinDigest | -> `ee69d23` | | [rui314/setup-mold](https://togithub.com/rui314/setup-mold) | action | pinDigest | -> `2e332a0` | | [softprops/action-gh-release](https://togithub.com/softprops/action-gh-release) | action | pinDigest | -> `de2c0eb` | | [swatinem/rust-cache](https://togithub.com/swatinem/rust-cache) | action | pinDigest | -> `23bce25` | | [tsickert/discord-webhook](https://togithub.com/tsickert/discord-webhook) | action | pinDigest | -> `c840d45` | --- ### Configuration 📅 **Schedule**: Branch creation - "after 3pm on Wednesday" in timezone America/New_York, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- Release Notes: - N/A <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MzguMCIsInVwZGF0ZWRJblZlciI6IjM3LjQzOC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-25 13:19:05 +00:00
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
with:
clean: false
- name: Setup mdBook
Pin dependencies (#15188) [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [2428392/gh-truncate-string-action](https://togithub.com/2428392/gh-truncate-string-action) | action | pinDigest | -> `67b1b81` | | [actions/checkout](https://togithub.com/actions/checkout) | action | pinDigest | -> `692973e` | | [actions/checkout](https://togithub.com/actions/checkout) | action | pinDigest | -> `ee0669b` | | [actions/setup-node](https://togithub.com/actions/setup-node) | action | pinDigest | -> `1e60f62` | | [actions/setup-python](https://togithub.com/actions/setup-python) | action | pinDigest | -> `39cd149` | | [actions/upload-artifact](https://togithub.com/actions/upload-artifact) | action | pinDigest | -> `0b2256b` | | [cloudflare/wrangler-action](https://togithub.com/cloudflare/wrangler-action) | action | pinDigest | -> `f84a562` | | [dcarbone/install-jq-action](https://togithub.com/dcarbone/install-jq-action) | action | pinDigest | -> `8867ddb` | | [peaceiris/actions-mdbook](https://togithub.com/peaceiris/actions-mdbook) | action | pinDigest | -> `ee69d23` | | [rui314/setup-mold](https://togithub.com/rui314/setup-mold) | action | pinDigest | -> `2e332a0` | | [softprops/action-gh-release](https://togithub.com/softprops/action-gh-release) | action | pinDigest | -> `de2c0eb` | | [swatinem/rust-cache](https://togithub.com/swatinem/rust-cache) | action | pinDigest | -> `23bce25` | | [tsickert/discord-webhook](https://togithub.com/tsickert/discord-webhook) | action | pinDigest | -> `c840d45` | --- ### Configuration 📅 **Schedule**: Branch creation - "after 3pm on Wednesday" in timezone America/New_York, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- Release Notes: - N/A <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MzguMCIsInVwZGF0ZWRJblZlciI6IjM3LjQzOC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-25 13:19:05 +00:00
uses: peaceiris/actions-mdbook@ee69d230fe19748b7abf22df32acaa93833fad08 # v2
with:
mdbook-version: "0.4.37"
- name: Set up default .cargo/config.toml
run: cp ./.cargo/collab-config.toml ./.cargo/config.toml
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install libxkbcommon-dev libxkbcommon-x11-dev
- name: Build book
run: |
set -euo pipefail
mkdir -p target/deploy
mdbook build ./docs --dest-dir=../target/deploy/docs/
- name: Deploy Docs
Pin dependencies (#15188) [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [2428392/gh-truncate-string-action](https://togithub.com/2428392/gh-truncate-string-action) | action | pinDigest | -> `67b1b81` | | [actions/checkout](https://togithub.com/actions/checkout) | action | pinDigest | -> `692973e` | | [actions/checkout](https://togithub.com/actions/checkout) | action | pinDigest | -> `ee0669b` | | [actions/setup-node](https://togithub.com/actions/setup-node) | action | pinDigest | -> `1e60f62` | | [actions/setup-python](https://togithub.com/actions/setup-python) | action | pinDigest | -> `39cd149` | | [actions/upload-artifact](https://togithub.com/actions/upload-artifact) | action | pinDigest | -> `0b2256b` | | [cloudflare/wrangler-action](https://togithub.com/cloudflare/wrangler-action) | action | pinDigest | -> `f84a562` | | [dcarbone/install-jq-action](https://togithub.com/dcarbone/install-jq-action) | action | pinDigest | -> `8867ddb` | | [peaceiris/actions-mdbook](https://togithub.com/peaceiris/actions-mdbook) | action | pinDigest | -> `ee69d23` | | [rui314/setup-mold](https://togithub.com/rui314/setup-mold) | action | pinDigest | -> `2e332a0` | | [softprops/action-gh-release](https://togithub.com/softprops/action-gh-release) | action | pinDigest | -> `de2c0eb` | | [swatinem/rust-cache](https://togithub.com/swatinem/rust-cache) | action | pinDigest | -> `23bce25` | | [tsickert/discord-webhook](https://togithub.com/tsickert/discord-webhook) | action | pinDigest | -> `c840d45` | --- ### Configuration 📅 **Schedule**: Branch creation - "after 3pm on Wednesday" in timezone America/New_York, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- Release Notes: - N/A <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MzguMCIsInVwZGF0ZWRJblZlciI6IjM3LjQzOC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-25 13:19:05 +00:00
uses: cloudflare/wrangler-action@f84a562284fc78278ff9052435d9526f9c718361 # v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy target/deploy --project-name=docs
- name: Deploy Install
Pin dependencies (#15188) [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [2428392/gh-truncate-string-action](https://togithub.com/2428392/gh-truncate-string-action) | action | pinDigest | -> `67b1b81` | | [actions/checkout](https://togithub.com/actions/checkout) | action | pinDigest | -> `692973e` | | [actions/checkout](https://togithub.com/actions/checkout) | action | pinDigest | -> `ee0669b` | | [actions/setup-node](https://togithub.com/actions/setup-node) | action | pinDigest | -> `1e60f62` | | [actions/setup-python](https://togithub.com/actions/setup-python) | action | pinDigest | -> `39cd149` | | [actions/upload-artifact](https://togithub.com/actions/upload-artifact) | action | pinDigest | -> `0b2256b` | | [cloudflare/wrangler-action](https://togithub.com/cloudflare/wrangler-action) | action | pinDigest | -> `f84a562` | | [dcarbone/install-jq-action](https://togithub.com/dcarbone/install-jq-action) | action | pinDigest | -> `8867ddb` | | [peaceiris/actions-mdbook](https://togithub.com/peaceiris/actions-mdbook) | action | pinDigest | -> `ee69d23` | | [rui314/setup-mold](https://togithub.com/rui314/setup-mold) | action | pinDigest | -> `2e332a0` | | [softprops/action-gh-release](https://togithub.com/softprops/action-gh-release) | action | pinDigest | -> `de2c0eb` | | [swatinem/rust-cache](https://togithub.com/swatinem/rust-cache) | action | pinDigest | -> `23bce25` | | [tsickert/discord-webhook](https://togithub.com/tsickert/discord-webhook) | action | pinDigest | -> `c840d45` | --- ### Configuration 📅 **Schedule**: Branch creation - "after 3pm on Wednesday" in timezone America/New_York, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- Release Notes: - N/A <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MzguMCIsInVwZGF0ZWRJblZlciI6IjM3LjQzOC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-25 13:19:05 +00:00
uses: cloudflare/wrangler-action@f84a562284fc78278ff9052435d9526f9c718361 # v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: r2 object put -f script/install.sh zed-open-source-website-assets/install.sh
- name: Deploy Docs Workers
Pin dependencies (#15188) [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [2428392/gh-truncate-string-action](https://togithub.com/2428392/gh-truncate-string-action) | action | pinDigest | -> `67b1b81` | | [actions/checkout](https://togithub.com/actions/checkout) | action | pinDigest | -> `692973e` | | [actions/checkout](https://togithub.com/actions/checkout) | action | pinDigest | -> `ee0669b` | | [actions/setup-node](https://togithub.com/actions/setup-node) | action | pinDigest | -> `1e60f62` | | [actions/setup-python](https://togithub.com/actions/setup-python) | action | pinDigest | -> `39cd149` | | [actions/upload-artifact](https://togithub.com/actions/upload-artifact) | action | pinDigest | -> `0b2256b` | | [cloudflare/wrangler-action](https://togithub.com/cloudflare/wrangler-action) | action | pinDigest | -> `f84a562` | | [dcarbone/install-jq-action](https://togithub.com/dcarbone/install-jq-action) | action | pinDigest | -> `8867ddb` | | [peaceiris/actions-mdbook](https://togithub.com/peaceiris/actions-mdbook) | action | pinDigest | -> `ee69d23` | | [rui314/setup-mold](https://togithub.com/rui314/setup-mold) | action | pinDigest | -> `2e332a0` | | [softprops/action-gh-release](https://togithub.com/softprops/action-gh-release) | action | pinDigest | -> `de2c0eb` | | [swatinem/rust-cache](https://togithub.com/swatinem/rust-cache) | action | pinDigest | -> `23bce25` | | [tsickert/discord-webhook](https://togithub.com/tsickert/discord-webhook) | action | pinDigest | -> `c840d45` | --- ### Configuration 📅 **Schedule**: Branch creation - "after 3pm on Wednesday" in timezone America/New_York, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- Release Notes: - N/A <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MzguMCIsInVwZGF0ZWRJblZlciI6IjM3LjQzOC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-25 13:19:05 +00:00
uses: cloudflare/wrangler-action@f84a562284fc78278ff9052435d9526f9c718361 # v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: deploy .cloudflare/docs-proxy/src/worker.js
- name: Deploy Install Workers
Pin dependencies (#15188) [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [2428392/gh-truncate-string-action](https://togithub.com/2428392/gh-truncate-string-action) | action | pinDigest | -> `67b1b81` | | [actions/checkout](https://togithub.com/actions/checkout) | action | pinDigest | -> `692973e` | | [actions/checkout](https://togithub.com/actions/checkout) | action | pinDigest | -> `ee0669b` | | [actions/setup-node](https://togithub.com/actions/setup-node) | action | pinDigest | -> `1e60f62` | | [actions/setup-python](https://togithub.com/actions/setup-python) | action | pinDigest | -> `39cd149` | | [actions/upload-artifact](https://togithub.com/actions/upload-artifact) | action | pinDigest | -> `0b2256b` | | [cloudflare/wrangler-action](https://togithub.com/cloudflare/wrangler-action) | action | pinDigest | -> `f84a562` | | [dcarbone/install-jq-action](https://togithub.com/dcarbone/install-jq-action) | action | pinDigest | -> `8867ddb` | | [peaceiris/actions-mdbook](https://togithub.com/peaceiris/actions-mdbook) | action | pinDigest | -> `ee69d23` | | [rui314/setup-mold](https://togithub.com/rui314/setup-mold) | action | pinDigest | -> `2e332a0` | | [softprops/action-gh-release](https://togithub.com/softprops/action-gh-release) | action | pinDigest | -> `de2c0eb` | | [swatinem/rust-cache](https://togithub.com/swatinem/rust-cache) | action | pinDigest | -> `23bce25` | | [tsickert/discord-webhook](https://togithub.com/tsickert/discord-webhook) | action | pinDigest | -> `c840d45` | --- ### Configuration 📅 **Schedule**: Branch creation - "after 3pm on Wednesday" in timezone America/New_York, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- Release Notes: - N/A <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MzguMCIsInVwZGF0ZWRJblZlciI6IjM3LjQzOC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-25 13:19:05 +00:00
uses: cloudflare/wrangler-action@f84a562284fc78278ff9052435d9526f9c718361 # v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: deploy .cloudflare/docs-proxy/src/worker.js