diff --git a/.github/workflows/assign_contributor_issue.yml b/.github/workflows/assign_contributor_issue.yml deleted file mode 100644 index 5e96861129..0000000000 --- a/.github/workflows/assign_contributor_issue.yml +++ /dev/null @@ -1,70 +0,0 @@ -# Assign Contributor Issue — auto-assign labeled contributor issues -# -# When an issue has both a `.contrib/good *` label and an `area:` label, -# finds the least-busy contributor interested in that area (via Tally form -# responses), assigns the issue, updates the project board, and notifies -# the contributor on Slack. -# -# Errors and "no candidates" conditions are reported to the Slack activity -# channel. - -name: Assign Contributor Issue - -on: - issues: - types: [labeled] - workflow_dispatch: - inputs: - issue_number: - description: "Issue number to test against" - required: true - type: number - -permissions: - contents: read - -concurrency: - group: assign-contributor-${{ github.event.issue.number || inputs.issue_number }} - cancel-in-progress: true - -jobs: - assign-contributor: - if: >- - github.event_name == 'workflow_dispatch' || - (github.repository == 'zed-industries/zed' && - github.event.issue.state == 'open' && - (startsWith(github.event.label.name, '.contrib/good ') || startsWith(github.event.label.name, 'area:'))) - runs-on: namespace-profile-2x4-ubuntu-2404 - timeout-minutes: 5 - - steps: - - name: Generate app token - id: app-token - uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3.0.0 - with: - app-id: ${{ secrets.ZED_COMMUNITY_BOT_APP_ID }} - private-key: ${{ secrets.ZED_COMMUNITY_BOT_PRIVATE_KEY }} - owner: zed-industries - - - name: Checkout repository - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1 - with: - sparse-checkout: script/github-assign-contributor-issue.py - sparse-checkout-cone-mode: false - - - name: Set up Python - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 - with: - python-version: "3.12" - - - name: Install dependencies - run: pip install requests - - - name: Assign contributor - env: - GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} - TALLY_API_KEY: ${{ secrets.TALLY_API_KEY }} - TALLY_FORM_ID: ${{ vars.TALLY_CONTRIBUTOR_FORM_ID }} - SLACK_BOT_TOKEN: ${{ secrets.SLACK_CONTRIBUTOR_BOT_TOKEN }} - ISSUE_NUMBER: ${{ github.event.issue.number || inputs.issue_number }} - run: python script/github-assign-contributor-issue.py "$ISSUE_NUMBER" diff --git a/.github/workflows/deploy_docs.yml b/.github/workflows/deploy_docs.yml deleted file mode 100644 index 1739b6b257..0000000000 --- a/.github/workflows/deploy_docs.yml +++ /dev/null @@ -1,153 +0,0 @@ -# Generated from xtask::workflows::deploy_docs -# Rebuild with `cargo xtask workflows`. -name: deploy_docs -on: - workflow_call: - inputs: - channel: - description: channel - type: string - default: '' - checkout_ref: - description: checkout_ref - type: string - default: '' - secrets: - DOCS_AMPLITUDE_API_KEY: - description: DOCS_AMPLITUDE_API_KEY - required: true - CLOUDFLARE_API_TOKEN: - description: CLOUDFLARE_API_TOKEN - required: true - CLOUDFLARE_ACCOUNT_ID: - description: CLOUDFLARE_ACCOUNT_ID - required: true - workflow_dispatch: - inputs: - channel: - description: 'Docs channel to deploy: nightly, preview, or stable' - type: string - default: '' - checkout_ref: - description: Git ref to checkout and deploy. Defaults to event SHA when omitted. - type: string - default: '' -jobs: - deploy_docs: - if: github.repository_owner == 'zed-industries' - name: Build and Deploy Docs - runs-on: namespace-profile-16x32-ubuntu-2204 - env: - DOCS_AMPLITUDE_API_KEY: ${{ secrets.DOCS_AMPLITUDE_API_KEY }} - CC: clang - CXX: clang++ - steps: - - id: resolve-channel - name: deploy_docs::resolve_channel_step - run: | - if [ -z "$CHANNEL" ]; then - if [ "$GITHUB_REF" = "refs/heads/main" ]; then - CHANNEL="nightly" - else - echo "::error::channel input is required when ref is not main." - exit 1 - fi - fi - - case "$CHANNEL" in - "nightly") - SITE_URL="/docs/nightly/" - PROJECT_NAME="docs-nightly" - ;; - "preview") - SITE_URL="/docs/preview/" - PROJECT_NAME="docs-preview" - ;; - "stable") - SITE_URL="/docs/" - PROJECT_NAME="docs" - ;; - *) - echo "::error::Invalid docs channel '$CHANNEL'. Expected one of: nightly, preview, stable." - exit 1 - ;; - esac - - { - echo "channel=$CHANNEL" - echo "site_url=$SITE_URL" - echo "project_name=$PROJECT_NAME" - } >> "$GITHUB_OUTPUT" - env: - CHANNEL: ${{ inputs.channel }} - - name: steps::checkout_repo - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd - with: - clean: false - ref: ${{ inputs.checkout_ref != '' && inputs.checkout_ref || github.sha }} - - name: steps::setup_cargo_config - run: | - mkdir -p ./../.cargo - cp ./.cargo/ci-config.toml ./../.cargo/config.toml - - name: steps::cache_rust_dependencies_namespace - uses: namespacelabs/nscloud-cache-action@a90bb5d4b27522ce881c6e98eebd7d7e6d1653f9 - with: - cache: rust - path: ~/.rustup - - name: steps::setup_linux - run: ./script/linux - - name: steps::download_wasi_sdk - run: ./script/download-wasi-sdk - - name: ./script/generate-action-metadata - run: ./script/generate-action-metadata - - name: deploy_docs::lychee_link_check - uses: lycheeverse/lychee-action@82202e5e9c2f4ef1a55a3d02563e1cb6041e5332 - with: - args: --no-progress --exclude '^http' './docs/src/**/*' - fail: true - jobSummary: false - - name: deploy_docs::install_mdbook - uses: peaceiris/actions-mdbook@ee69d230fe19748b7abf22df32acaa93833fad08 - with: - mdbook-version: 0.4.37 - - name: deploy_docs::build_docs_book - run: | - mkdir -p target/deploy - mdbook build ./docs --dest-dir=../target/deploy/docs/ - env: - DOCS_CHANNEL: ${{ steps.resolve-channel.outputs.channel }} - MDBOOK_BOOK__SITE_URL: ${{ steps.resolve-channel.outputs.site_url }} - - name: deploy_docs::lychee_link_check - uses: lycheeverse/lychee-action@82202e5e9c2f4ef1a55a3d02563e1cb6041e5332 - with: - args: --no-progress --exclude '^http' 'target/deploy/docs' - fail: true - jobSummary: false - - name: deploy_docs::docs_deploy_steps::deploy_to_cf_pages - uses: cloudflare/wrangler-action@da0e0dfe58b7a431659754fdf3f186c529afbe65 - with: - apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} - accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - command: pages deploy target/deploy --project-name=${{ steps.resolve-channel.outputs.project_name }} --branch main - - name: deploy_docs::docs_deploy_steps::upload_install_script - uses: cloudflare/wrangler-action@da0e0dfe58b7a431659754fdf3f186c529afbe65 - 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::docs_deploy_steps::deploy_docs_worker - uses: cloudflare/wrangler-action@da0e0dfe58b7a431659754fdf3f186c529afbe65 - with: - apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} - accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - command: deploy .cloudflare/docs-proxy/src/worker.js - - name: deploy_docs::docs_deploy_steps::upload_wrangler_logs - if: always() - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 - with: - name: wrangler_logs - path: /home/runner/.config/.wrangler/logs/ - timeout-minutes: 60 -defaults: - run: - shell: bash -euxo pipefail {0} diff --git a/.github/workflows/deploy_nightly_docs.yml b/.github/workflows/deploy_nightly_docs.yml deleted file mode 100644 index 340713e0a4..0000000000 --- a/.github/workflows/deploy_nightly_docs.yml +++ /dev/null @@ -1,23 +0,0 @@ -# Generated from xtask::workflows::deploy_nightly_docs -# Rebuild with `cargo xtask workflows`. -name: deploy_nightly_docs -on: - push: - branches: - - main -jobs: - deploy_docs: - if: (github.repository_owner == 'zed-industries' || github.repository_owner == 'zed-extensions') - permissions: - contents: read - uses: zed-industries/zed/.github/workflows/deploy_docs.yml@main - secrets: - DOCS_AMPLITUDE_API_KEY: ${{ secrets.DOCS_AMPLITUDE_API_KEY }} - CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} - CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - with: - channel: nightly - checkout_ref: ${{ github.sha }} -defaults: - run: - shell: bash -euxo pipefail {0}