Skip to content

Commit

Permalink
ci: fix release... again.
Browse files Browse the repository at this point in the history
  • Loading branch information
thalesmg committed Jul 29, 2022
1 parent 2d8858e commit 3946f51
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,18 @@ export MIX_ENV=prod

arch="$1"

apt update
apt install -yyq git make

mix local.hex --force
mix local.rebar --force
mix deps.get

make all

for f in $(ls _build/prod/*.tar.gz)
for f in $(ls _build/$MIX_ENV/*.tar.gz)
do
out=${f%%.tar.gz}-${arch}
out=${out##*/}
mv "$f" ${out}.tar.gz
done
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
name: releases
retention-days: 1
path: |
_build/prod/*.tar.gz
*.tar.gz
release:
runs-on: ubuntu-latest
needs:
Expand All @@ -71,5 +71,5 @@ jobs:
with:
tag_name: ${{ github.event.inputs.release_tag || github.event.release.tag_name }}
files: |
_build/prod/*.tar.gz
*.tar.gz
...

0 comments on commit 3946f51

Please sign in to comment.