Skip to content

Commit

Permalink
chore: use workflow template
Browse files Browse the repository at this point in the history
  • Loading branch information
yordis committed Nov 25, 2021
1 parent b3eb0fe commit d461835
Showing 1 changed file with 7 additions and 25 deletions.
32 changes: 7 additions & 25 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,10 @@ on:
types: [published]

jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Elixir
uses: erlef/setup-elixir@v1
with:
elixir-version: '1.11'
otp-version: '22.3'
- name: Restore dependencies cache
uses: actions/cache@v2
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-
- name: Install dependencies
run: |
mix local.rebar --force
mix local.hex --force
mix deps.get
- name: Run Hex Publish
run: mix hex.publish --yes
env:
HEX_API_KEY: ${{ secrets.HEX_API_KEY }}
hex-publish:
uses: straw-hat-team/github-actions-workflows/.github/workflows/[email protected]
with:
elixir-version: '1.11'
otp-version: '22.3'
secrets:
HEX_API_KEY: ${{ secrets.HEX_API_KEY }}

0 comments on commit d461835

Please sign in to comment.