Skip to content

Commit

Permalink
ci: install a json library before luarocks upload in release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasgeiler committed Apr 6, 2024
1 parent 02fd501 commit af953bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,11 @@ jobs:
sed -i -E "s/\bversion\s*=\s*('|\"|\[\[)\s*[a-zA-Z0-9.-]+\s*('|\"|\]\])/version = '${version#v}-1'/" "$rockspec"
sed -i -E "s/\bbranch\s*=\s*('|\"|\[\[)\s*[a-zA-Z0-9.-_\/]+\s*('|\"|\]\])/tag = '$version'/" "$rockspec"
git diff
if [[ -z "$(git status --porcelain)" ]]; then
if [[ -z "$(git status --porcelain "$rockspec")" ]]; then
echo "Rockspec not modified"
exit 1
fi
luarocks install dkjson
luarocks upload --temp-key "${{ secrets.LUAROCKS_API_KEY }}" "$rockspec"
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')

Expand Down

0 comments on commit af953bd

Please sign in to comment.