Skip to content

Commit e1c1713

Browse files
committed
build and install with custom rockspec
1 parent bd56ca1 commit e1c1713

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/publish.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,14 @@ jobs:
6565

6666
- run: sudo apt install -y luarocks lua5.2 liblua5.2-dev libclang-common-14-dev clang-14
6767

68+
- run: printf '%s=%s\n' BRANCH_NAME_ESCAPED $(echo $BRANCH_NAME | sed -e "s#/#\\\/#g") >> "${GITHUB_ENV}"
69+
env:
70+
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
71+
72+
- run: sed -i -E
73+
-e 's/branch = "master"/branch = "$BRANCH_NAME_ESCAPED"/g'
74+
luzer-scm-1.rockspec
75+
6876
- run: luarocks --local build luzer-scm-1.rockspec
6977

7078
- run: |

0 commit comments

Comments
 (0)