Merge pull request #49 from travelping/feature/stable/3.x/safe-imei-e… #10
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: publish to hex.pm | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
publish: | |
runs-on: ubuntu-20.04 | |
container: | |
image: erlang:23.2.5.0-alpine | |
steps: | |
- name: Prepare | |
run: | | |
apk update | |
apk --no-cache upgrade | |
apk --no-cache add gcc git libc-dev libc-utils libgcc linux-headers make bash \ | |
musl-dev musl-utils ncurses-dev pcre2 pkgconf scanelf wget zlib | |
- uses: actions/checkout@v4 | |
- name: work around for permission issue | |
run: | | |
git config --global --add safe.directory /__w/gtplib/gtplib | |
- name: Publish to Hex.pm | |
env: | |
HEX_API_KEY: ${{ secrets.HEX_API_KEY }} | |
run: | | |
rebar3 edoc | |
rebar3 hex publish -r hexpm --yes |