File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88jobs :
99 release :
1010 runs-on : ubuntu-latest
11+ permissions :
12+ contents : write
1113 steps :
1214 - uses : actions/checkout@v4
13- - uses : nvim-neorocks/luarocks-tag-release@v7
15+ with :
16+ fetch-depth : 0
17+
18+ - name : Generate changelog
19+ id : changelog
20+ run : |
21+ # Get previous tag
22+ PREV_TAG=$(git describe --tags --abbrev=0 HEAD^ 2>/dev/null || echo "")
23+ if [ -z "$PREV_TAG" ]; then
24+ COMMITS=$(git log --pretty=format:"- %s" HEAD)
25+ else
26+ COMMITS=$(git log --pretty=format:"- %s" ${PREV_TAG}..HEAD)
27+ fi
28+ echo "commits<<EOF" >> $GITHUB_OUTPUT
29+ echo "$COMMITS" >> $GITHUB_OUTPUT
30+ echo "EOF" >> $GITHUB_OUTPUT
31+
32+ - name : Create GitHub release
33+ uses : softprops/action-gh-release@v2
34+ with :
35+ generate_release_notes : false
36+ body : |
37+ ## Changes
38+
39+ ${{ steps.changelog.outputs.commits }}
40+
41+ ## Install
42+
43+ Using [lazy.nvim](https://github.com/folke/lazy.nvim):
44+ ```lua
45+ { "matiyas/vue-sfc-format.nvim" }
46+ ```
47+
48+ Using [LuaRocks](https://luarocks.org/modules/matiyas/vue-sfc-format.nvim):
49+ ```
50+ luarocks install vue-sfc-format.nvim
51+ ```
52+
53+ - name : Publish to LuaRocks
54+ uses : nvim-neorocks/luarocks-tag-release@v7
1455 env :
1556 LUAROCKS_API_KEY : ${{ secrets.LUAROCKS_API_KEY }}
1657 with :
You can’t perform that action at this time.
0 commit comments