Skip to content

Commit

Permalink
Update luarocks workflow to trigger on tag only, not release
Browse files Browse the repository at this point in the history
## Details

There is no need to run the luarocks workflow on both tag creation
and release creation given how I currently create releases. They are
essentially just copies of each other.

Other minor changes:

- Move local ignored assets to temp directory
- Add a link to luarocks markdown.nvim asset
  • Loading branch information
MeanderingProgrammer committed Jul 29, 2024
1 parent d8f692d commit 780800e
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 16 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/luarocks.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
name: Luarocks

on:
pull_request: # Tests packaging on PR
workflow_dispatch:
push:
tags:
- '*'
release:
types:
- created
pull_request: # Tests packaging on PR
workflow_dispatch:

jobs:
luarocks-upload:
runs-on: ubuntu-22.04
steps:
- name: Checkout
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Required to get the tags

- name: Get Version
run: echo "LUAROCKS_VERSION=$(git describe --abbrev=0 --tags)" >> $GITHUB_ENV

Expand Down
7 changes: 1 addition & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,2 @@
*.cast
*.gif
*.json
medium.md
large.md
test.md
test.log
/temp/
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@
[726c85c](https://github.com/MeanderingProgrammer/markdown.nvim/commit/726c85cb9cc6d7d9c85af6ab093e1ee53b5e3c82).
- Ultimately removed in TODO

### Bug Fixes

- Block code rendering with transparent background [#102](https://github.com/MeanderingProgrammer/markdown.nvim/pull/102)

### Collaborator Shoutouts

- @scottmckendry

## 5.0.0 (2024-07-27)

### ⚠ BREAKING CHANGES
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,12 @@ Plugin to improve viewing Markdown files in Neovim

## rocks.nvim

```vimscript
```vim
:Rocks install markdown.nvim
```

- [luarocks.org](https://luarocks.org/modules/MeanderingProgrammer/markdown.nvim)

## packer.nvim

```lua
Expand Down
6 changes: 4 additions & 2 deletions doc/render-markdown.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*render-markdown.txt* For 0.10.0 Last change: 2024 July 27
*render-markdown.txt* For 0.10.0 Last change: 2024 July 29

==============================================================================
Table of Contents *render-markdown-table-of-contents*
Expand Down Expand Up @@ -103,10 +103,12 @@ LAZY.NVIM *render-markdown-install-lazy.nvim*

ROCKS.NVIM *render-markdown-install-rocks.nvim*

>vimscript
>vim
:Rocks install markdown.nvim
<

- luarocks.org <https://luarocks.org/modules/MeanderingProgrammer/markdown.nvim>


PACKER.NVIM *render-markdown-install-packer.nvim*

Expand Down
1 change: 1 addition & 0 deletions doc/todo.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
- Add a performance test suite to measure improvements, relative value on
same hardware should still be useful.
- Figure out how to display the many configuration options & impact
- Potentially change LuaRocks icon dependency to [mini.icons](https://luarocks.org/modules/neorocks/mini.icons)
4 changes: 2 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ cat-log:
cat ~/.local/state/nvim/render-markdown.log

gen-medium:
just gen-file "1000" > medium.md
just gen-file "1000" > temp/medium.md

gen-large:
just gen-file "100000" > large.md
just gen-file "100000" > temp/large.md

[private]
gen-file lines:
Expand Down
Empty file added temp/.gitkeep
Empty file.

0 comments on commit 780800e

Please sign in to comment.