Skip to content

huacnlee/zed-extension-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Zed Extensions GitHub Action

This action for automatically bump Zed Extensions version after a release.

Usage

Create a release.yml file in .github/workflows directory with the following content:

on:
  push:
    tags:
      - "v*"

jobs:
  homebrew:
    name: Release Zed Extension
    runs-on: ubuntu-latest
    steps:
      - uses: huacnlee/zed-extension-action@v2
        with:
          extension-name: your-extension-name
          # extension-path: extensions/${{ extension-name }}
          push-to: your-name/extensions
        env:
          # the personal access token should have "repo" & "workflow" scopes
          COMMITTER_TOKEN: ${{ secrets.COMMITTER_TOKEN }}

Inputs

Name Description Required Default
extension-name The name of your Zed extension. true -
extension-path If you have a different path, you can set it. false extensions/${ extension-name }
push-to The forked repository of the zed-industries/extensions repo. true -
tag Git tag name to use for the extension update false Currently pushed tag

Tag Support

The tag parameter allows you to specify a specific git tag to use for the extension update:

  • Tag names: v1.0.0 or refs/tags/v1.0.0

When no tag parameter is provided, the action uses the currently pushed tag from the context.

Examples

Using a specific tag:

- uses: huacnlee/zed-extension-action@v2
  with:
    extension-name: your-extension-name
    tag: v1.2.3
    push-to: your-name/extensions

The COMMITTER_TOKEN is a personal access token with repo and workflow scopes. You can create one in your GitHub settings.

How it works

When a new tag is pushed, the action will:

  1. Check if the tag is a valid version number.
  2. Create a Pull Request with the new version to Zed Extensions repository.
  3. Merge the Pull Request if it's approved, then the extension version will released.

See example: zed-industries/extensions#217

License

MIT

About

GitHub Action for automatically bump Zed Extensions version after a release.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •