Skip to content

Commit

Permalink
fixup! fixup! publish to hex.pm
Browse files Browse the repository at this point in the history
  • Loading branch information
andreineculau committed May 30, 2021
1 parent 54a46e1 commit 0f9bc03
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,19 +85,19 @@ jobs:
# PUBLISH TAGS

- if: ${{ startsWith(github.ref, 'refs/tags/') }}
name: Check is-semver-tag
id: is-semver-tag
shell: bash
run: |
if [[ ${{ github.event.ref }} =~ ^refs/tags/[0-9]+\.[0-9]+\.[0-9]+ ]]; then
echo ::set-output name=match::true
echo ::set-output name=check::true
fi
- if: ${{ matrix.otp_vsn == 'latest' && steps.is-semver-tag.outputs.match == 'true'}}
- if: ${{ matrix.otp_vsn == 'latest' && steps.is-semver-tag.outputs.check == 'true'}}
name: Run make publish
shell: bash
env:
HEX_API_KEY: ${{secrets.HEX_API_KEY}}
run: |
# deps for rebar3 edoc as per https://github.com/erlangpack/github-action/blob/34eda48/Dockerfile
apk add --no-cache bsd-compat-headers gcc git libc-dev make
mkdir -p $${HOME}/.config/rebar3
echo "{plugins, [rebar3_hex]}." > $${HOME}/.config/rebar3/rebar.config
mkdir -p ~/.config/rebar3
echo "{plugins, [rebar3_hex]}." > ~/.config/rebar3/rebar.config
make publish

0 comments on commit 0f9bc03

Please sign in to comment.