This commit is contained in:
@@ -11,30 +11,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Setup dotnet
|
|
||||||
uses: actions/setup-dotnet@v3
|
|
||||||
with:
|
|
||||||
dotnet-version: ${{ matrix.dotnet-version }}
|
|
||||||
- name: Install dependencies
|
|
||||||
run: dotnet restore
|
|
||||||
- name: Test with dotnet
|
|
||||||
run: dotnet test --logger trx --results-directory "TestResults-${{ matrix.dotnet-version }}"
|
|
||||||
- name: Build the package
|
|
||||||
run: dotnet build
|
|
||||||
- name: Publish the package
|
|
||||||
run: dotnet publish -p:PublishSingleFile=true --self-contained false --runtime win-x64
|
|
||||||
- name: List all files
|
- name: List all files
|
||||||
run: |
|
run: |
|
||||||
find /workspace/pi-ux-ce/OpenJiraGui/OpenJiraGui/bin
|
find /workspace/pi-ux-ce/OpenJiraGui/OpenJiraGui/bin
|
||||||
|
|
||||||
- name: Delete existing latest version
|
|
||||||
run: |
|
|
||||||
curl --user ${{ secrets.USERNAME_GITEA }}:${{ secrets.PASSWORD_GITEA }} -X DELETE \
|
|
||||||
https://gitea.tryton.geeraert.eu/api/packages/pi-ux-ce/generic/OpenJiraGui/latest/OpenJiraGui.exe
|
|
||||||
|
|
||||||
- name: upload latest version
|
|
||||||
run: |
|
|
||||||
curl --user ${{ secrets.USERNAME_GITEA }}:${{ secrets.PASSWORD_GITEA }} \
|
|
||||||
--upload-file /workspace/pi-ux-ce/OpenJiraGui/OpenJiraGui/bin/Release/net8.0/win-x64/publish/OpenJiraGui.exe \
|
|
||||||
https://gitea.tryton.geeraert.eu/api/packages/pi-ux-ce/generic/OpenJiraGui/latest/OpenJiraGui.exe
|
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>WinExe</OutputType>
|
<OutputType>WinExe</OutputType>
|
||||||
<TargetFramework>net8.0-windows</TargetFramework>
|
<TargetFramework>net8.0-windows</TargetFramework>
|
||||||
|
<EnableWindowsTargeting>true</EnableWindowsTargeting>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<UseWindowsForms>true</UseWindowsForms>
|
<UseWindowsForms>true</UseWindowsForms>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
|||||||
Reference in New Issue
Block a user