mirror of
https://github.com/KeksPirates/SoftwareManager.git
synced 2026-08-04 17:59:43 +02:00
Merge branch 'main' of https://github.com/KeksPirates/SoftwareManager
This commit is contained in:
+31
-18
@@ -1,10 +1,13 @@
|
|||||||
name: Build Executables
|
name: Build Executables (Dev)
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
version:
|
version:
|
||||||
description: "Release version (e.g., v1.0.0)"
|
description: "Dev release version (e.g., v1.0.0-dev)"
|
||||||
required: true
|
required: true
|
||||||
default: "v1.0.0"
|
default: "v1.0.0"
|
||||||
|
|
||||||
@@ -22,14 +25,14 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
artifact_name: SoftwareManager-linux
|
artifact_name: SoftwareManager-dev-${{ github.run_number }}-linux
|
||||||
asset_name: SoftwareManager-linux
|
asset_name: SoftwareManager-dev-${{ github.run_number }}-linux
|
||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
artifact_name: SoftwareManager-windows.exe
|
artifact_name: SoftwareManager-dev-${{ github.run_number }}-windows.exe
|
||||||
asset_name: SoftwareManager-windows.exe
|
asset_name: SoftwareManager-dev-${{ github.run_number }}-windows.exe
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
artifact_name: SoftwareManager-macos
|
artifact_name: SoftwareManager-dev-${{ github.run_number }}-macos
|
||||||
asset_name: SoftwareManager-macos
|
asset_name: SoftwareManager-dev-${{ github.run_number }}-macos
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
@@ -105,25 +108,35 @@ jobs:
|
|||||||
find artifacts -type f
|
find artifacts -type f
|
||||||
ls -la artifacts/
|
ls -la artifacts/
|
||||||
|
|
||||||
|
- name: Generate version
|
||||||
|
id: version
|
||||||
|
run: |
|
||||||
|
MAJOR=1
|
||||||
|
MINOR=0
|
||||||
|
PATCH=${{ github.run_number }}
|
||||||
|
VERSION="v${MAJOR}.${MINOR}.${PATCH}-dev"
|
||||||
|
echo "version=${VERSION}" >> $GITHUB_OUTPUT
|
||||||
|
echo "Generated version: ${VERSION}"
|
||||||
|
|
||||||
- name: Prepare release files
|
- name: Prepare release files
|
||||||
run: |
|
run: |
|
||||||
mkdir -p release
|
mkdir -p release
|
||||||
cp artifacts/ubuntu-latest-build/SoftwareManager-linux release/
|
cp artifacts/ubuntu-latest-build/SoftwareManager-dev-${{ github.run_number }}-linux release/SoftwareManager-dev-1.0.${{ github.run_number }}-linux
|
||||||
cp artifacts/windows-latest-build/SoftwareManager-windows.exe release/
|
cp artifacts/windows-latest-build/SoftwareManager-dev-${{ github.run_number }}-windows.exe release/SoftwareManager-dev-1.0.${{ github.run_number }}-windows.exe
|
||||||
cp artifacts/macos-latest-build/SoftwareManager-macos release/
|
cp artifacts/macos-latest-build/SoftwareManager-dev-${{ github.run_number }}-macos release/SoftwareManager-dev-1.0.${{ github.run_number }}-macos
|
||||||
chmod +x release/SoftwareManager-linux release/SoftwareManager-macos
|
chmod +x release/SoftwareManager-dev-*-linux release/SoftwareManager-dev-*-macos
|
||||||
ls -la release/
|
ls -la release/
|
||||||
|
|
||||||
- name: Create Draft Release (Dev)
|
- name: Create Draft Release (Dev)
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ github.event.inputs.version }}
|
tag_name: ${{ steps.version.outputs.version }}
|
||||||
name: Dev Release ${{ github.event.inputs.version }}
|
name: ${{ steps.version.outputs.version }}
|
||||||
draft: true
|
draft: true
|
||||||
prerelease: true
|
prerelease: true
|
||||||
files: |
|
files: |
|
||||||
release/SoftwareManager-linux
|
release/SoftwareManager-dev-1.0.${{ github.run_number }}-linux
|
||||||
release/SoftwareManager-windows.exe
|
release/SoftwareManager-dev-1.0.${{ github.run_number }}-windows.exe
|
||||||
release/SoftwareManager-macos
|
release/SoftwareManager-dev-1.0.${{ github.run_number }}-macos
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user