@@ -13,28 +13,13 @@ jobs:
1313 runs-on : ubuntu-latest
1414 steps :
1515 - uses : actions/checkout@v4
16-
17- - name : Install Neovim
16+
17+ - name : Setup Neovim
1818 uses : rhysd/action-setup-vim@v1
1919 with :
2020 neovim : true
2121 version : stable
22-
23- - name : Setup Lua
24- uses : leafo/gh-actions-lua@v10
25- with :
26- luaVersion : " 5.1"
27-
28- - name : Setup LuaRocks
29- uses : leafo/gh-actions-luarocks@v4
30- with :
31- luaRocksVersion : " 3.11.0"
32-
33- - name : Install dependencies
34- run : |
35- luarocks install busted
36- luarocks install luacov
37-
22+
3823 - name : Run tests
3924 run : |
4025 chmod +x scripts/test
@@ -47,20 +32,20 @@ jobs:
4732 - uses : actions/checkout@v4
4833 with :
4934 fetch-depth : 0
50-
35+
5136 - name : Get version from tag
5237 id : tag_name
5338 run : |
5439 echo "current_version=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
55-
40+
5641 - name : Get Changelog Entry
5742 id : changelog_reader
5843 uses : mindsers/changelog-reader-action@v2
5944 with :
6045 validation : true
6146 version : ${{ steps.tag_name.outputs.current_version }}
6247 path : ./CHANGELOG.md
63-
48+
6449 - name : Create Release
6550 id : create_release
6651 uses : actions/create-release@v1
@@ -72,14 +57,14 @@ jobs:
7257 body : ${{ steps.changelog_reader.outputs.changes }}
7358 prerelease : ${{ steps.changelog_reader.outputs.status == 'prereleased' }}
7459 draft : ${{ steps.changelog_reader.outputs.status == 'unreleased' }}
75-
60+
7661 - name : Create Archive
7762 run : |
7863 mkdir -p sort-nvim
7964 cp -r lua plugin README.md LICENSE CHANGELOG.md sort-nvim/
8065 tar -czf sort-nvim-${{ steps.tag_name.outputs.current_version }}.tar.gz sort-nvim
8166 zip -r sort-nvim-${{ steps.tag_name.outputs.current_version }}.zip sort-nvim
82-
67+
8368 - name : Upload Release Assets
8469 uses : actions/upload-release-asset@v1
8570 env :
8974 asset_path : ./sort-nvim-${{ steps.tag_name.outputs.current_version }}.tar.gz
9075 asset_name : sort-nvim-${{ steps.tag_name.outputs.current_version }}.tar.gz
9176 asset_content_type : application/gzip
92-
77+
9378 - name : Upload Release Assets (ZIP)
9479 uses : actions/upload-release-asset@v1
9580 env :
9883 upload_url : ${{ steps.create_release.outputs.upload_url }}
9984 asset_path : ./sort-nvim-${{ steps.tag_name.outputs.current_version }}.zip
10085 asset_name : sort-nvim-${{ steps.tag_name.outputs.current_version }}.zip
101- asset_content_type : application/zip
86+ asset_content_type : application/zip
0 commit comments