2024-03-19 18:19:32 +00:00
|
|
|
name: Publish zed-extension CLI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- extension-cli
|
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
CARGO_INCREMENTAL: 0
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
publish:
|
|
|
|
name: Publish zed-extension CLI
|
|
|
|
runs-on:
|
|
|
|
- ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout repo
|
2024-10-09 22:24:10 +00:00
|
|
|
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
|
2024-03-19 18:19:32 +00:00
|
|
|
with:
|
|
|
|
clean: false
|
|
|
|
|
|
|
|
- name: Cache dependencies
|
2024-07-25 13:19:05 +00:00
|
|
|
uses: swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2
|
2024-03-19 18:19:32 +00:00
|
|
|
with:
|
|
|
|
save-if: ${{ github.ref == 'refs/heads/main' }}
|
2024-09-18 22:05:30 +00:00
|
|
|
cache-provider: "github"
|
2024-03-19 18:19:32 +00:00
|
|
|
|
|
|
|
- name: Configure linux
|
|
|
|
shell: bash -euxo pipefail {0}
|
|
|
|
run: script/linux
|
|
|
|
|
|
|
|
- name: Build extension CLI
|
|
|
|
run: cargo build --release --package extension_cli
|
|
|
|
|
|
|
|
- name: Upload binary
|
|
|
|
env:
|
|
|
|
DIGITALOCEAN_SPACES_ACCESS_KEY: ${{ secrets.DIGITALOCEAN_SPACES_ACCESS_KEY }}
|
|
|
|
DIGITALOCEAN_SPACES_SECRET_KEY: ${{ secrets.DIGITALOCEAN_SPACES_SECRET_KEY }}
|
|
|
|
run: script/upload-extension-cli ${{ github.sha }}
|