From 3aa4c47db5538bc4b45889b80341679e746bd81c Mon Sep 17 00:00:00 2001
From: linrongbin16
Date: Sun, 7 Jan 2024 11:37:42 +0800
Subject: [PATCH 1/5] perf(ci): auto-upload
---
.github/workflows/ci.yml | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 4960b2e..fa287e3 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -104,3 +104,10 @@ 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
+ mv giturlparser.lua-${{ steps.release.outputs.tag_name}}-1.rockspec giturlparser-${{ steps.release.outputs.tag_name}}-1.rockspec
+ sed -i 's/package = "giturlparser.lua"/package = "giturlparser"/g' ./giturlparser-${{ steps.release.outputs.tag_name}}-1.rockspec
+ luarocks upload giturlparser-${{ steps.release.outputs.tag_name}}-1.rockspec --api-key=${{ secrets.LUAROCKS_API_KEY }}
From b4281112a31b763a3d55908c791e2f5edfe47cce Mon Sep 17 00:00:00 2001
From: linrongbin16
Date: Sun, 7 Jan 2024 11:38:49 +0800
Subject: [PATCH 2/5] chore
---
README.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/README.md b/README.md
index 453e299..61a8bcf 100644
--- a/README.md
+++ b/README.md
@@ -2,6 +2,7 @@
+
Pure Lua implemented git URL parsing library, e.g. the output of `git remote get-url origin`.
From f3f81347487825031569aafd865eef2aafa9e748 Mon Sep 17 00:00:00 2001
From: linrongbin16
Date: Sun, 7 Jan 2024 11:40:04 +0800
Subject: [PATCH 3/5] chore
---
README.md | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/README.md b/README.md
index 61a8bcf..c372cd4 100644
--- a/README.md
+++ b/README.md
@@ -1,10 +1,14 @@
# giturlparser.lua
+
+
+
Pure Lua implemented git URL parsing library, e.g. the output of `git remote get-url origin`.
+
## Features
From 8bde9d6f62df8cc037c9c16a363b8c13d564ed07 Mon Sep 17 00:00:00 2001
From: linrongbin16
Date: Sun, 7 Jan 2024 11:40:14 +0800
Subject: [PATCH 4/5] chore
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index c372cd4..8184022 100644
--- a/README.md
+++ b/README.md
@@ -7,7 +7,7 @@
-Pure Lua implemented git URL parsing library, e.g. the output of `git remote get-url origin`.
+Pure Lua implemented git URL parsing library, e.g. the output of git remote get-url origin
.
## Features
From 0dbe95a035f6393fc4e910b9166292e1de3ea6a4 Mon Sep 17 00:00:00 2001
From: linrongbin16
Date: Sun, 7 Jan 2024 11:41:11 +0800
Subject: [PATCH 5/5] chore
---
.github/workflows/ci.yml | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index fa287e3..fa720c8 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -108,6 +108,14 @@ jobs:
- 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 }}