Skip to content

Commit

Permalink
build: Releases automatisch installer hinzufügen
Browse files Browse the repository at this point in the history
  • Loading branch information
JKamue committed Aug 23, 2024
1 parent 4f4c113 commit cf21177
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions .github/workflows/build_and_publish_installer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
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

steps:
- name: Repository laden
uses: actions/checkout@v4

- name: .NET installieren
uses: actions/setup-dotnet@v4

- 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\\Clockodo QuickActions\\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_name }}
overwrite: true

0 comments on commit cf21177

Please sign in to comment.