Skip to content

Commit

Permalink
Add release.yml workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
evilmarty committed Aug 7, 2023
1 parent 2a75da2 commit 77bf336
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Release

on:
release:
types: [published]

jobs:
publish:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- pair:
elixir-version: 1.15
otp-version: 26.0
lint: lint
steps:
- uses: actions/checkout@v3
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: ${{matrix.pair.elixir-version}}
otp-version: ${{matrix.pair.otp-version}}
- name: Restore elixir dependencies cache
uses: actions/cache@v3
with:
path: deps
key: ${{runner.os}}-mix-${{matrix.elixir-version}}-${{matrix.otp-version}}-${{hashFiles('**/mix.lock')}}
restore-keys: ${{runner.os}}-mix-${{matrix.elixir-version}}-${{matrix.otp-version}}-
- name: Install dependencies
run: mix deps.get
- name: Publish to Hex
run: mix hex.publish --yes
env:
HEX_API_KEY: ${{secrets.HEX_API_KEY}}

0 comments on commit 77bf336

Please sign in to comment.