From 9e5da192709deae14fe903b9ba31b5c8b0b6fa52 Mon Sep 17 00:00:00 2001 From: Alex Piechowski Date: Sat, 5 Mar 2022 16:47:51 -0600 Subject: [PATCH] Build latest released version Otherwise the lucky_cli generation might not match actual lucky code Also, delete a few lines from the lucky template to ensure ameba passes Only until https://github.com/luckyframework/lucky_cli/pull/739 is released --- .github/workflows/build.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 44f6b92..c107551 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,6 +17,7 @@ jobs: cd /tmp git clone https://github.com/luckyframework/lucky_cli cd lucky_cli + git checkout $(git describe --tags $(git rev-list --tags --max-count=1)) shards install shards build mv bin/lucky /usr/local/bin/ @@ -38,6 +39,9 @@ jobs: sed -i '/^development_dependencies:/i \ \ ameba:\n\ \ \ \ github: crystal-ameba/ameba' shard.yml + # TODO: Remove after https://github.com/luckyframework/lucky_cli/pull/739 is released + sed -i '49,58d' config/server.cr + - name: Push Build to Main run: | git config --global user.email "alex@piechowski.io"