Skip to content

Commit

Permalink
using log git hash for release name to better integrate with build tools
Browse files Browse the repository at this point in the history
  • Loading branch information
dgulinobw committed Feb 23, 2024
1 parent b9f30c4 commit f3c371a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,15 @@ jobs:
ci-${{runner.os}}-${{env.cache-name}}-otp_${{matrix.otp}}-rebar_${{matrix.rebar3}}
ci-${{runner.os}}-${{env.cache-name}}-otp_${{matrix.otp}}
- name: Compile
run: rebar3 do clean, compile as public

- name: Release
run: rebar3 do tar as public
run: rebar3 as public tar

- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GH_TOKEN }}
file: _build/default/rel/dog_trainer/dog_trainer-${{ github.sha }}.tar.gz
asset_name: dog_trainer_release_${{ runner.os }}_${{ env.RELEASE_VERSION }}.tar.gz
asset_name: dog_trainer_release_ubuntu-${{ runner.arch }}_${{ env.RELEASE_VERSION }}.tar.gz
tag: ${{ github.ref }}
overwrite: true
body: "dog_trainer Erlang release"

0 comments on commit f3c371a

Please sign in to comment.