-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (50 loc) · 1.69 KB
/
release.yml
File metadata and controls
62 lines (50 loc) · 1.69 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
name: Release
on:
push:
tags:
- 'v*.*.*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Download Neovim
run: |
mkdir -p build
wget https://github.com/neovim/neovim/releases/download/v0.7.0/nvim.appimage
chmod +x nvim.appimage
mv nvim.appimage ./build/nvim
echo "${PWD}/build" >> $GITHUB_PATH
- name: Download RipGrep
run: |
mkdir -p build
wget https://github.com/BurntSushi/ripgrep/releases/download/13.0.0/ripgrep-13.0.0-x86_64-unknown-linux-musl.tar.gz
tar xfz ripgrep-13.0.0-x86_64-unknown-linux-musl.tar.gz
mv ripgrep-13.0.0-x86_64-unknown-linux-musl/rg ./build/rg
- name: deps
run: make deps
- name: test
run: make test
- name: tarball
run: |
TAG=$(git name-rev --tags --name-only ${{github.ref}})
VERSION=${TAG:1}
TARBALL="nvim-client-proxy-${VERSION}.tar.gz"
echo TAG=${TAG} >> $GITHUB_ENV
echo VERSION=${VERSION} >> $GITHUB_ENV
echo TARBALL=${TARBALL} >> $GITHUB_ENV
tar --create -z --file ${TARBALL} *.md LICENSE src test *.rockspec
- name: Release Notes
run: make Release.txt
- name: GitHub Release
uses: softprops/action-gh-release@v1
with:
files: |
${{env.TARBALL}}
body_path: Release.txt
- name: LuaRocks Release
run: |
./.deps/usr/bin/luarocks make
./.deps/usr/bin/luarocks pack nvim-client-proxy
./.deps/usr/bin/luarocks upload *.rockspec --api-key=${{ secrets.LUAROCKS_KEY }}