mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 05:23:03 +12:00
ci: update hex publish logic
This commit is contained in:
parent
5063384684
commit
c6be22b21d
1 changed files with 5 additions and 2 deletions
7
.github/workflows/elixir.yml
vendored
7
.github/workflows/elixir.yml
vendored
|
@ -30,8 +30,8 @@ jobs:
|
|||
path: |
|
||||
deps
|
||||
_build
|
||||
key: ${{matrix.otp}}-${{matrix.elixir}}-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
|
||||
restore-keys: ${{matrix.otp}}-${{matrix.elixir}}-
|
||||
key: otp-${{matrix.otp}}-elixir-${{matrix.elixir}}-lock-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
|
||||
restore-keys: otp-${{matrix.otp}}-elixir-${{matrix.elixir}}
|
||||
- run: mix deps.get
|
||||
- run: mix check
|
||||
- run: mix hex.user auth ash-project
|
||||
|
@ -39,3 +39,6 @@ jobs:
|
|||
env:
|
||||
HEX_API_KEY: ${{ secrets.HEX_API_KEY }}
|
||||
- run: mix publish
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
env:
|
||||
HEX_API_KEY: ${{ secrets.HEX_API_KEY }}
|
||||
|
|
Loading…
Reference in a new issue