Skip to content

Commit

Permalink
update linutil release
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisTitusTech committed Sep 16, 2024
1 parent 0e1a5cc commit 0ac0d91
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 55 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/linutil.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,39 @@ jobs:
file_pattern: "build/linutil"
add_options: '--force'
if: success()

- 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 }}

- 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.generate_notes.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 }}
55 changes: 0 additions & 55 deletions .github/workflows/pre-release.yaml

This file was deleted.

0 comments on commit 0ac0d91

Please sign in to comment.