linutil/.github/workflows/pre-release.yaml

38 lines
1.1 KiB
YAML
Raw Normal View History

2024-07-14 01:14:19 +01:00
name: Pre-Release LinUtil
2024-07-14 01:36:04 +01:00
permissions:
contents: write # Grant write permissions to contents
packages: write # Grant write permissions to packages
2024-07-14 01:14:19 +01:00
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")
2024-07-18 21:44:20 +01:00
echo "version=$version" >> $env:GITHUB_ENV
2024-07-14 01:14:19 +01:00
shell: bash
- name: Create and Upload Release
id: create_release
uses: softprops/action-gh-release@v2
with:
2024-07-18 21:44:20 +01:00
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
2024-07-14 02:07:34 +01:00
files: |
./linutil
./start.sh
2024-07-14 01:14:19 +01:00
prerelease: true
2024-07-18 21:44:20 +01:00
generate_release_notes: true
2024-07-14 01:14:19 +01:00
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}