mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-12-24 12:29:44 +00:00
38 lines
1.1 KiB
YAML
38 lines
1.1 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
|
|
|
|
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: Create and Upload Release
|
|
id: create_release
|
|
uses: softprops/action-gh-release@v2
|
|
with:
|
|
tag_name: ${{ env.version }}
|
|
name: Pre-Release ${{ env.version }}
|
|
body: "![GitHub Downloads (specific asset, specific tag)](https://img.shields.io/github/downloads/ChrisTitusTech/linutil/${{ env.version }}/linutil)"
|
|
append_body: false
|
|
files: |
|
|
./build/release/linutil
|
|
prerelease: true
|
|
generate_release_notes: true
|
|
env:
|
|
version: ${{ env.version }}
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |