Add Github Action to release to hex.pm when tagging

This commit is contained in:
Badlop
2021-03-24 22:20:54 +01:00
parent a43f2cc4c3
commit 833132c955

18
.github/workflows/hexpm-release.yml vendored Normal file
View File

@@ -0,0 +1,18 @@
name: hexpm-release
on:
push:
tags:
- '*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v2
- name: Publish to hex.pm
run: rebar3 hex publish --repo hexpm --yes || head rebar3.crashdump
env:
HEX_API_KEY: ${{ secrets.HEX_API_KEY }}