Skip to content

Release 1.9.0

Release 1.9.0 #16

Workflow file for this run

name: Hex
on:
push:
tags:
- '*'
jobs:
release:
runs-on: ubuntu-20.04
steps:
- name: Check out
uses: actions/checkout@v2
- name: Setup rebar3 hex
run: |
mkdir -p ~/.config/rebar3/
echo "{plugins, [rebar3_hex]}." > ~/.config/rebar3/rebar.config
- name: Prepare Markdown
run: |
sed -i 's|doc/API.md|API.html|g' README.md
- name: Convert Markdown to HTML
uses: natescherer/[email protected]
with:
path: README.md,doc/API.md
- name: Postprocess links
run: |
mv README.html doc/index.html
sed -i 's| href="API.html#| href="API.html#user-content-|g' doc/index.html
sed -i 's| href="#| href="#user-content-|g' doc/API.html
- name: Publish to hex.pm
run: DEBUG=1 rebar3 hex publish --repo hexpm --yes
env:
HEX_API_KEY: ${{ secrets.HEX_API_KEY }}