workflows added

This commit is contained in:
2026-02-18 01:43:21 +01:00
Unverified
parent eb5d9c8a5b
commit 1c57b799db
6 changed files with 105 additions and 18 deletions

View File

@@ -0,0 +1,9 @@
next-version: 1.0.0
mode: ContinuousDeployment
assembly-versioning-scheme: MajorMinorPatch
assembly-file-versioning-scheme: MajorMinorPatch
branches:
main:
regex: ^main$
increment: Patch

BIN
.gitea/readme/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 651 KiB

View File

Before

Width:  |  Height:  |  Size: 94 KiB

After

Width:  |  Height:  |  Size: 94 KiB

View File

@@ -0,0 +1,29 @@
name: Build app
on:
push:
branches:
- "dev"
paths:
- "VDownload**"
pull_request:
branches:
- "dev"
- "main"
paths:
- "VDownload**"
jobs:
build:
name: Build
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore

View File

@@ -0,0 +1,67 @@
name: Build and publish app
on:
workflow_dispatch:
branches:
- "main"
push:
branches:
- "main"
paths:
- "VDownload**"
jobs:
build_version:
name: Build and determine version
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Setup GitVersion
uses: gittools/actions/gitversion/setup@v4.2.0
with:
versionSpec: 6.4.x
- name: Determine version
uses: gittools/actions/gitversion/execute@v4.2.0
id: gitversion
with:
configFilePath: ./.gitea/config/gitversion.yml
outputs:
version: ${{ steps.gitversion.outputs.SemVer }}
pack_publish:
name: Pack and publish
needs: build_version
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 7.0.x
- name: Publish
run: dotnet publish -c Release -r win-x64 -p:Platform=x64 -p:PublishTrimmed=false -p:Version=${{needs.build_test_version.outputs.version}} VDownload\\VDownload.csproj
- name: Remove redundant directories
run: rm -r VDownload/bin/x64/Release/net8.0-windows10.0.26100.0/win-x64/publish
- name: Create .ZIP archive
id: archive
uses: ksm2/archive-action@v1
with:
format: "zip"
name: vdownload_${{needs.build_test_version.outputs.version}}
root-directory: VDownload/bin/x64/Release/net8.0-windows10.0.26100.0/win-x64/
- name: Create Release
uses: akkuman/gitea-release-action@v1
with:
tag_name: ${{needs.pack.outputs.version}}
name: ${{needs.pack.outputs.version}}
files: |-
vdownload_${{needs.build_test_version.outputs.version}}.zip

View File

@@ -1,18 +0,0 @@
next-version: 1.0.0
assembly-versioning-scheme: MajorMinorPatch
assembly-file-versioning-scheme: MajorMinorPatch
branches:
master:
regex: ^master$
mode: ContinuousDelivery
increment: Patch
tag: ''
is-release-branch: true
test:
regex: ^features
mode: ContinuousDelivery
increment: Patch
tag: ''
is-release-branch: true
source-branches: []