Skip to content

chore(release): v0.4.0 #4

chore(release): v0.4.0

chore(release): v0.4.0 #4

Workflow file for this run

name: Release
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
jobs:
daily:
uses: ./.github/workflows/daily.yml
ci:
needs: [daily]
uses: ./.github/workflows/ci.yml
release:
needs: [ci]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
# Multi line outputs needs escaped before echo, ref:
# https://github.community/t5/GitHub-Actions/set-output-Truncates-Multiline-Strings/td-p/37870
- name: Get message
id: tag
run: |
message=$(echo "${{ github.event.head_commit.message }}" | tail -n +3)
message="${message//'%'/'%25'}"
message="${message//$'\n'/'%0A'}"
message="${message//$'\r'/'%0D'}"
echo "::set-output name=message::$message"
- name: Download Linux binary from artifact
uses: actions/download-artifact@v3
- name: Release
uses: softprops/action-gh-release@v1
with:
body: ${{ steps.tag.outputs.message }}
draft: false
prerelease: false
files: fontfor-*/fontfor*