mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-05 21:28:48 +00:00
ea06d6fc99
Bumps [release-drafter/release-drafter](https://github.com/release-drafter/release-drafter) from 5 to 6. - [Release notes](https://github.com/release-drafter/release-drafter/releases) - [Commits](https://github.com/release-drafter/release-drafter/compare/v5...v6) --- updated-dependencies: - dependency-name: release-drafter/release-drafter dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
65 lines
1.8 KiB
YAML
65 lines
1.8 KiB
YAML
name: Pre-Release LinUtil
|
|
|
|
permissions:
|
|
contents: write # Grant write permissions to contents
|
|
packages: write # Grant write permissions to packages
|
|
|
|
on:
|
|
workflow_dispatch: # Manual trigger added
|
|
workflow_run:
|
|
workflows: ["LinUtil Release"]
|
|
types:
|
|
- completed
|
|
|
|
jobs:
|
|
build-runspace:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Extract Version
|
|
id: extract_version
|
|
run: |
|
|
version=$(date +"%Y.%m.%d")
|
|
echo "version=$version" >> $GITHUB_ENV
|
|
shell: bash
|
|
|
|
- name: Generate Release Notes
|
|
id: generate_notes
|
|
uses: release-drafter/release-drafter@v6
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
config-name: release-drafter.yml
|
|
version: ${{ env.version }}
|
|
version-template: '$YEAR.$MONTH.$DAY'
|
|
|
|
- name: Prepare Release Body
|
|
id: prepare_body
|
|
run: |
|
|
new_changes="${{ steps.generate_notes.outputs.body }}"
|
|
echo "body<<EOF" >> $GITHUB_OUTPUT
|
|
echo "$new_changes" >> $GITHUB_OUTPUT
|
|
echo "EOF" >> $GITHUB_OUTPUT
|
|
|
|
- name: Create and Upload Release
|
|
id: create_release
|
|
uses: softprops/action-gh-release@v2
|
|
with:
|
|
tag_name: ${{ env.version }}
|
|
name: Pre-Release ${{ env.version }}
|
|
body: |
|
|
${{ steps.prepare_body.outputs.body }}
|
|
|
|
![GitHub Downloads (specific asset, specific tag)](https://img.shields.io/github/downloads/ChrisTitusTech/linutil/${{ env.version }}/linutil)
|
|
append_body: false
|
|
files: |
|
|
./build/linutil
|
|
./start.sh
|
|
./startdev.sh
|
|
prerelease: true
|
|
env:
|
|
version: ${{ env.version }}
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|