Skip to content

Commit

Permalink
ci: Installer hinzugefügt
Browse files Browse the repository at this point in the history
  • Loading branch information
JKamue committed Aug 27, 2024
1 parent 0b2d437 commit 23ef64c
Show file tree
Hide file tree
Showing 4 changed files with 262 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build_and_publish_installer.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Clockodo Quick Actions bauen und Installer sowie Update erstellen
name: Bauen und Installer sowie Update erstellen

on:
push:
Expand All @@ -8,7 +8,7 @@ on:
jobs:
clockodo-quickactions-installer-erstellen:
runs-on: windows-latest
name: Clockodo Quick Actions Installer Bauen
name: Installer Bauen
permissions:
packages: write
contents: write
Expand All @@ -24,17 +24,17 @@ jobs:
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.QuickActions.csproj --property:PublishProfile="FolderProfile"
run: dotnet publish -c Release -r win-x64 ${{ github.workspace }}\coIT.Toolkit.AbsencesExport.csproj --property:PublishProfile="FolderProfile"

- name: Installer bauen
uses: caphyon/advinst-github-action@v2.0
with:
advinst-version: '21.9'
advinst-license: ${{ secrets.ADVINST_LICENSE_KEY }}
advinst-enable-automation: 'true'
aip-path: ${{ github.workspace }}\coIT.Toolkit.QuickActions.Installer.aip
aip-path: ${{ github.workspace }}\coIT.Toolkit.AbsencesExport.Installer.aip
aip-build-name: DefaultBuild
aip-package-name: coIT.Toolkit.QuickActions.Installer-${{github.ref_name}}.msi
aip-package-name: coIT.Toolkit.AbsencesExport.Installer-${{github.ref_name}}.msi
aip-output-dir: ${{ github.workspace }}\setup
aip-commands: |
SetVersion ${{github.ref_name}}
Expand All @@ -43,7 +43,7 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ github.workspace }}\setup\coIT.Toolkit.QuickActions.Installer-${{github.ref_name}}.msi
file: ${{ github.workspace }}\setup\coIT.Toolkit.AbsencesExport.Installer-${{github.ref_name}}.msi
tag: ${{ github.ref }}
overwrite: true

Expand All @@ -52,7 +52,7 @@ jobs:
VERSION: ${{ github.ref_name }}
run: |
# JSON String erstellen
$jsonString = '{"RegistryKey":"HKUD\\Software\\\\co-IT.eu GmbH\\Clockodo QuickActions\\Version", "Version":"' + $env:VERSION + '"}'
$jsonString = '{"RegistryKey":"HKUD\\Software\\\\co-IT.eu GmbH\\Abwesenheit Export\\Version", "Version":"' + $env:VERSION + '"}'
# Datei erstellen
$jsonString | Set-Content -Path advinst_update.json
Expand Down
18 changes: 18 additions & 0 deletions Properties/PublishProfiles/FolderProfile.pubxml
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\AbsencesExport\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>
Loading

0 comments on commit 23ef64c

Please sign in to comment.