Skip to content

Push Release

Push Release #83

Workflow file for this run

name: Push Release
on: workflow_dispatch
jobs:
release:
runs-on: macos-latest
steps:
- name: Checkout latest repository commit
uses: actions/[email protected]
with:
show-progress: false
- id: get-tag
name: Fetches latest release tag
shell: bash
run: |
LATEST_TAG="$(grep -m 1 -o '## \[.*\]' Changelog.md | awk -F'[][]' '{print $2}')"
echo "TAG=$LATEST_TAG" >> "$GITHUB_ENV"
- name: Make file executable
run: |
chmod +x UXTU4Mac/Assets/ryzenadj
chmod +x UXTU4Mac/UXTU4Mac.command
- name: Zip folder
run: |
zip -r UXTU4Mac.zip UXTU4Mac
env:
TAG: ${{ env.TAG }}
- id: generate-notes
name: Generate Release Notes
shell: bash
run: |
BODY="$(sed -n "/## \[$TAG\]/,/## \[/p" Changelog.md | sed -e '1,2d;$d')"
echo "$BODY" > ${{ github.workspace }}-RELEASE_NOTES.txt
env:
TAG: ${{ env.TAG }}
- name: Create release
uses: softprops/[email protected]
with:
name: v${{ env.TAG }}
tag_name: ${{ env.TAG }}
body_path: ${{ github.workspace }}-RELEASE_NOTES.txt
files: UXTU4Mac.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}