Skip to content

Commit

Permalink
Merge pull request #20 from Logflare/chore/prerelease-tagging
Browse files Browse the repository at this point in the history
chore: update pre-release tagging
  • Loading branch information
Ziinc authored Nov 29, 2023
2 parents 109f583 + 3e79c43 commit 220320d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ex-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,13 @@ jobs:
key: mix-${{ hashFiles('**/mix.lock') }}
restore-keys: mix
- run: mix deps.get
- run: echo "short_sha=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV
- run: echo "short_sha=`echo ${GITHUB_SHA} | cut -c1-7`" >> $GITHUB_ENV
- run: echo "timestamp=`date +%s`" >> $GITHUB_ENV
- run: mix hex.publish --yes
if: github.event_name == 'push'
env:
HEX_API_KEY: ${{ secrets.HEX_AUTH_TOKEN }}
LOGFLARE_EX_PRERELEASE_VERSION: dev+${{ env.short_sha }}
LOGFLARE_EX_PRERELEASE_VERSION: dev.${{env.timestamp}}.${{ env.short_sha }}
- run: mix hex.publish --yes
if: github.event_name == 'release' || github.event_name == 'workflow_dispatch'
env:
Expand Down

0 comments on commit 220320d

Please sign in to comment.