Release 1.1.28 #19
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: Hex | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
release: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Check out | |
uses: actions/checkout@v4 | |
- name: Setup rebar3 hex | |
run: | | |
mkdir -p ~/.config/rebar3/ | |
echo "{plugins, [rebar3_hex]}." > ~/.config/rebar3/rebar.config | |
- run: rebar3 edoc | |
- name: Prepare Markdown | |
run: | | |
echo "" >>README.md | |
echo "## EDoc documentation" >>README.md | |
echo "" >>README.md | |
echo "You can check this library's " >>README.md | |
echo "[EDoc documentation](edoc.html), " >>README.md | |
echo "generated automatically from the source code comments." >>README.md | |
- name: Convert Markdown to HTML | |
uses: natescherer/[email protected] | |
with: | |
path: README.md | |
- run: | | |
mv doc/index.html doc/edoc.html | |
mv README.html doc/index.html | |
- name: Publish to hex.pm | |
run: DEBUG=1 rebar3 hex publish --repo hexpm --yes | |
env: | |
HEX_API_KEY: ${{ secrets.HEX_API_KEY }} |