-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (59 loc) · 1.73 KB
/
release.yml
File metadata and controls
68 lines (59 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Release
on:
push:
tags:
- "v*"
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Generate changelog
id: changelog
run: |
# Get previous tag
PREV_TAG=$(git describe --tags --abbrev=0 HEAD^ 2>/dev/null || echo "")
if [ -z "$PREV_TAG" ]; then
COMMITS=$(git log --pretty=format:"- %s" HEAD)
else
COMMITS=$(git log --pretty=format:"- %s" ${PREV_TAG}..HEAD)
fi
echo "commits<<EOF" >> $GITHUB_OUTPUT
echo "$COMMITS" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- name: Create GitHub release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: false
body: |
## Changes
${{ steps.changelog.outputs.commits }}
## Install
Using [lazy.nvim](https://github.com/folke/lazy.nvim):
```lua
{ "matiyas/vue-sfc-format.nvim" }
```
Using [LuaRocks](https://luarocks.org/modules/matiyas/vue-sfc-format.nvim):
```
luarocks install vue-sfc-format.nvim
```
- name: Publish to LuaRocks
uses: nvim-neorocks/luarocks-tag-release@v7
env:
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}
with:
name: vue-sfc-format.nvim
summary: "Format Vue SFC files with configurable formatters for each section"
labels: |
neovim
vue
formatter
sfc
copy_directories: |
lua
plugin
doc