Skip to content

Doc rebuild for v1.2.1 #19

Doc rebuild for v1.2.1

Doc rebuild for v1.2.1 #19

Workflow file for this run

name: Release
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
env:
INCLUDE: "./MphpD/"
TAGNAME: "${{ github.ref_name }}"
OUTFILE: "mphpd-${{ github.ref_name }}"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: rename src
run: mv ./src ./MphpD
- name: move .md files to MphpD
run: cp ./LICENSE.md ./README.md ./CHANGELOG.md ./MphpD/
- name: parse changelog
run: |
echo "# Changelog" > CHANGES.md
awk -v version="${{ env.TAGNAME }}" '/## /{printit = $2 == version}; printit;' ./CHANGELOG.md >> CHANGES.md
- name: Zip Folder
run: zip -r "${{ env.OUTFILE }}.zip" ${{ env.INCLUDE }}
- name: Tar Folder
run: tar -cvzf "${{ env.OUTFILE }}.tar.gz" ${{ env.INCLUDE }}
- name: Release
uses: softprops/action-gh-release@v1
with:
body_path: ./CHANGES.md
files: |
${{ env.OUTFILE }}.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}