Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,18 @@ jobs:
message: "Current stable release: ${{ steps.release.outputs.tag_name }}"
tag_exists_error: false
force_push_tag: true
- uses: leafo/gh-actions-lua@v10
- uses: leafo/gh-actions-luarocks@v4
- run: |
luarocks write_rockspec --lua-versions="5.1,5.2,5.3,5.4" --tag=${{ steps.release.outputs.tag_name }} --detailed="Pure Lua implemented git URL parsing library" --summary="Pure Lua implemented git URL parsing library" --license=MIT
echo 'ls'
ls -lh
mv giturlparser.lua-${{ steps.release.outputs.tag_name}}-1.rockspec giturlparser-${{ steps.release.outputs.tag_name}}-1.rockspec
echo 'ls'
ls -lh
sed -i 's/package = "giturlparser.lua"/package = "giturlparser"/g' ./giturlparser-${{ steps.release.outputs.tag_name}}-1.rockspec
echo 'ls'
ls -lh
echo 'cat rockspec'
cat giturlparser-${{ steps.release.outputs.tag_name}}-1.rockspec
luarocks upload giturlparser-${{ steps.release.outputs.tag_name}}-1.rockspec --api-key=${{ secrets.LUAROCKS_API_KEY }}
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
# giturlparser.lua

<p align="center">
<a href="https://luarocks.org/modules/linrongbin16/giturlparser"><img alt="luarocks" src="https://custom-icon-badges.demolab.com/luarocks/v/linrongbin16/giturlparser?label=LuaRocks&labelColor=2C2D72&logo=tag&logoColor=fff&color=blue" /></a>
<a href="https://github.com/linrongbin16/giturlparser.lua/actions/workflows/ci.yml"><img alt="ci.yml" src="https://img.shields.io/github/actions/workflow/status/linrongbin16/giturlparser.lua/ci.yml?label=GitHub%20CI&labelColor=181717&logo=github&logoColor=fff" /></a>
<a href="https://app.codecov.io/github/linrongbin16/giturlparser.lua"><img alt="codecov" src="https://img.shields.io/codecov/c/github/linrongbin16/giturlparser.lua?logo=codecov&logoColor=F01F7A&label=Codecov" /></a>
</p>

Pure Lua implemented git URL parsing library, e.g. the output of `git remote get-url origin`.
<p align="center">
Pure Lua implemented git URL parsing library, e.g. the output of <code>git remote get-url origin</code>.
</p>

## Features

Expand Down