mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-24 11:14:23 +01:00
35 lines
843 B
YAML
35 lines
843 B
YAML
name: "sync-zed-extension"
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
release:
|
|
types: [published]
|
|
|
|
jobs:
|
|
zed:
|
|
name: Release Zed Extension
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- uses: ./.github/actions/setup-bun
|
|
|
|
- name: Get version tag
|
|
id: get_tag
|
|
run: |
|
|
if [ "${{ github.event_name }}" = "release" ]; then
|
|
TAG="${{ github.event.release.tag_name }}"
|
|
else
|
|
TAG=$(git tag --list 'v[0-9]*.*' --sort=-version:refname | head -n 1)
|
|
fi
|
|
echo "tag=${TAG}" >> $GITHUB_OUTPUT
|
|
echo "Using tag: ${TAG}"
|
|
|
|
- name: Sync Zed extension
|
|
run: |
|
|
./script/sync-zed.ts ${{ steps.get_tag.outputs.tag }}
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.SST_GITHUB_TOKEN }}
|