Skip to content

fix: Remove test app from mod (#78) #15

fix: Remove test app from mod (#78)

fix: Remove test app from mod (#78) #15

Workflow file for this run

name: Release
on:
push:
tags:
- "v*.*.*"
permissions:
contents: write
jobs:
changelog:
name: Create Release
runs-on: ubuntu-latest
outputs:
release_body: ${{ steps.git-cliff.outputs.content }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Generate release docs
uses: orhun/git-cliff-action@v2
id: git-cliff
with:
config: cliff.toml
args: -vv --latest --strip all
env:
OUTPUT: CHANGES.md
- name: Generate a changelog
uses: orhun/git-cliff-action@v2
id: git-cliff-change
with:
config: cliff.toml
env:
OUTPUT: CHANGELOG.md
- name: Read release
id: read_release
shell: bash
run: |
r=$(cat CHANGES.md)
r="${r//'%'/'%25'}" # Multiline escape sequences for %
r="${r//$'\n'/'%0A'}" # Multiline escape sequences for '\n'
r="${r//$'\r'/'%0D'}" # Multiline escape sequences for '\r'
echo "RELEASE_BODY=$r" >> $GITHUB_OUTPUT
# - name: Publish to Hex.pm
# uses: erlangpack/github-action@v3
# env:
# HEX_API_KEY: ${{ secrets.HEX_API_KEY }}
- name: Create release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: CHANGES.md
tag: ${{ github.ref }}
body: |
${{ steps.read_release.outputs.RELEASE_BODY }}