Skip to content

Commit 94e7e01

Browse files
authored
ci: release please (#117)
1 parent 945d161 commit 94e7e01

4 files changed

Lines changed: 55 additions & 30 deletions

File tree

.github/workflows/panvimdoc.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: release
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
docs:
8+
runs-on: ubuntu-latest
9+
name: vimdoc generator
10+
steps:
11+
- uses: actions/checkout@v3
12+
with:
13+
token: ${{ secrets.PAT }}
14+
15+
- name: panvimdoc
16+
uses: kdheepak/panvimdoc@main
17+
with:
18+
vimdoc: elixir-tools.nvim
19+
version: "NVIM v0.8.0"
20+
demojify: true
21+
treesitter: true
22+
23+
- name: Push changes
24+
uses: stefanzweifel/git-auto-commit-action@v4
25+
with:
26+
commit_message: "chore(build): auto-generate vimdoc"
27+
commit_user_name: "github-actions[bot]"
28+
commit_user_email: "github-actions[bot]@users.noreply.github.com"
29+
commit_author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>"
30+
31+
release:
32+
name: release
33+
needs:
34+
- docs
35+
runs-on: ubuntu-latest
36+
steps:
37+
- uses: google-github-actions/release-please-action@v3
38+
id: release
39+
with:
40+
release-type: simple
41+
package-name: elixir-tools.nvim
42+
- uses: actions/checkout@v3
43+
- name: tag stable versions
44+
if: ${{ steps.release.outputs.release_created }}
45+
run: |
46+
git config user.name github-actions[bot]
47+
git config user.email github-actions[bot]@users.noreply.github.com
48+
git remote add gh-token "https://${{ secrets.GITHUB_TOKEN }}@github.com/google-github-actions/release-please-action.git"
49+
git tag -d stable || true
50+
git push origin :stable || true
51+
git tag -a stable -m "Latest Stable Release"
52+
git push origin stable

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Requires 0.8
2828
```lua
2929
{
3030
"elixir-tools/elixir-tools.nvim",
31+
version = "*",
3132
event = { "BufReadPre", "BufNewFile" },
3233
config = function()
3334
local elixir = require("elixir")
@@ -58,7 +59,7 @@ Requires 0.8
5859
## packer.nvim
5960

6061
```lua
61-
use({ "elixir-tools/elixir-tools.nvim", requires = { "nvim-lua/plenary.nvim" }})
62+
use({ "elixir-tools/elixir-tools.nvim", tag = "stable", requires = { "nvim-lua/plenary.nvim" }})
6263
```
6364

6465
# Getting Started

version.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.2.0

0 commit comments

Comments
 (0)