-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Releases automatisch installer hinzufügen
asdf asdf asdfasd asdfasdf asdfaefase update check asfdasdfa asdkgjfaös asdf
- Loading branch information
Showing
3 changed files
with
132 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
name: Clockodo Quickactions bauen und Installer sowie Update erstellen | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*.*.*' | ||
|
||
jobs: | ||
clockodo-quickactions-installer-erstellen: | ||
runs-on: windows-latest | ||
name: ClockodoQuickActions Installer Bauen | ||
permissions: | ||
packages: write | ||
contents: write | ||
|
||
steps: | ||
- name: Repository laden | ||
uses: actions/checkout@v4 | ||
|
||
- name: .NET installieren | ||
uses: actions/setup-dotnet@v4 | ||
|
||
- name: GitHub Package Manager registrieren | ||
run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/co-IT/index.json" | ||
|
||
- name: Anwendung bauen | ||
run: dotnet publish -c Release -r win-x64 ${{ github.workspace }}\coIT.Toolkit.Lexoffice.GdiExport.csproj --property:PublishProfile="FolderProfile" | ||
|
||
- name: Installer bauen | ||
uses: caphyon/[email protected] | ||
with: | ||
advinst-version: '21.9' | ||
advinst-license: ${{ secrets.ADVINST_LICENSE_KEY }} | ||
advinst-enable-automation: 'true' | ||
aip-path: ${{ github.workspace }}\coIT.Toolkit.Lexoffice.GdiExport.Installer.aip | ||
aip-build-name: DefaultBuild | ||
aip-package-name: coIT.Toolkit.Lexoffice.GdiExport.Installer-${{github.ref_name}}.msi | ||
aip-output-dir: ${{ github.workspace }}\setup | ||
aip-commands: | | ||
SetVersion ${{github.ref_name}} | ||
- name: Installer zu release hinzufügen | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: ${{ github.workspace }}\setup\coIT.Toolkit.Lexoffice.GdiExport.Installer-${{github.ref_name}}.msi | ||
tag: ${{ github.ref }} | ||
overwrite: true | ||
|
||
- name: Update json erstellen | ||
env: | ||
VERSION: ${{ github.ref_name }} | ||
run: | | ||
# JSON String erstellen | ||
$jsonString = '{"RegistryKey":"HKUD\\Software\\\\co-IT.eu GmbH\\Lexoffice Gdi Export\\Version", "Version":"' + $env:VERSION + '"}' | ||
# Datei erstellen | ||
$jsonString | Set-Content -Path advinst_update.json | ||
# Dbug Ausgabe | ||
Write-Output (Resolve-Path advinst_update.json) | ||
Get-Content advinst_update.json | ||
- name: Update json zu Release hinzufügen | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: ${{ github.workspace }}\advinst_update.json | ||
tag: ${{ github.ref }} | ||
overwrite: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
https://go.microsoft.com/fwlink/?LinkID=208121. | ||
--> | ||
<Project> | ||
<PropertyGroup> | ||
<Configuration>Release</Configuration> | ||
<Platform>Any CPU</Platform> | ||
<PublishDir>build\LexofficeToGdiExport\Release\net8.0-windows8.0\publish\win-x64\</PublishDir> | ||
<PublishProtocol>FileSystem</PublishProtocol> | ||
<_TargetId>Folder</_TargetId> | ||
<TargetFramework>net8.0-windows8.0</TargetFramework> | ||
<RuntimeIdentifier>win-x64</RuntimeIdentifier> | ||
<SelfContained>false</SelfContained> | ||
<PublishSingleFile>true</PublishSingleFile> | ||
<PublishReadyToRun>false</PublishReadyToRun> | ||
</PropertyGroup> | ||
</Project> |
Oops, something went wrong.