Skip to content

Commit

Permalink
ci(vim): update ci release script for vim 2.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
icycodes committed Oct 16, 2024
1 parent dd98d90 commit e23e0fe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/release-vim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Release Vim Plugin

on:
workflow_dispatch:
push:
tags:
- 'vim@*'

jobs:
release:
Expand All @@ -21,13 +24,13 @@ jobs:
path: vim-tabby
- name: Copy files
run: |
find vim-tabby/ -mindepth 1 ! -regex '^vim-tabby/\.git\(/.*\)?' -delete
cp -r tabby/clients/vim/.gitignore vim-tabby/
cp -r tabby/clients/vim/* vim-tabby/
rm vim-tabby/package.json
- name: Get version
id: get_version
run: |
cd vim-tabby/autoload/tabby/
version=$(cat globals.vim | grep "let g:tabby_version" | sed -e 's/.*"\(.*\)".*/\1/')
version=$(cat vim-tabby/autoload/tabby.vim | grep "let g:tabby_version" | sed -e 's/.*"\(.*\)".*/\1/')
echo "::set-output name=version::$version"
- name: Commit files
run: |
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
- 'nightly'
- "!*-dev.*"
- '!vscode@*'
- '!vim@*'
pull_request:
branches: [ "main" ]
paths:
Expand Down

0 comments on commit e23e0fe

Please sign in to comment.