Skip to content

Commit

Permalink
Build latest released version
Browse files Browse the repository at this point in the history
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 luckyframework/lucky_cli#739 is
released
  • Loading branch information
grepsedawk committed Mar 5, 2022
1 parent 9518b33 commit 9e5da19
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand All @@ -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"
Expand Down

0 comments on commit 9e5da19

Please # to comment.