Template
Compare commits
23
Commits
31cb9da0ef
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b2d96c56ec | ||
|
|
15ca9820be | ||
|
|
2101f3f460 | ||
|
|
12cd95f935 | ||
|
|
bb9c065d29 | ||
|
|
c82178fe7c | ||
|
|
feec97b759 | ||
|
|
11ce381d43 | ||
|
|
9d02ea9d1e | ||
|
|
f43cfca98c | ||
|
|
e2c4bc3e19 | ||
|
|
6408840b84 | ||
|
|
956b9b09a0 | ||
|
|
f0561a039f | ||
|
|
909eb6d9b9 | ||
|
|
39dbae439b | ||
|
|
a5bb02717d | ||
|
|
1f1b7625cd | ||
|
|
f24585b77d | ||
|
|
77f4bd59f8 | ||
|
|
c6225716cf | ||
|
|
4de966504b | ||
|
|
5072175e7b |
@@ -7,7 +7,6 @@ jobs:
|
||||
strategy:
|
||||
matrix:
|
||||
dotnet-version: [ '8.0.x' ]
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
@@ -18,10 +17,13 @@ jobs:
|
||||
run: |
|
||||
latest="${{ vars.VERSION }}"
|
||||
next_version=$(echo "$latest" | awk -F. -v OFS=. '{$NF += 1 ; print}')
|
||||
echo "Next version: $next_version"
|
||||
echo "next_version=$next_version" >> $GITHUB_ENV
|
||||
echo "${{ vars.EXECUTABLE_NAME }}"
|
||||
echo "${{ vars.RUNTIME }}"
|
||||
echo "Variables used :"
|
||||
echo "------------------------------------------------"
|
||||
echo "Next version: $next_version"
|
||||
echo "EXECUTABLE_NAME: ${{ vars.EXECUTABLE_NAME }}"
|
||||
echo "RUNTIME: ${{ vars.RUNTIME }}"
|
||||
echo "TARGET_FRAMEWORK: ${{ vars.TARGET_FRAMEWORK }}"
|
||||
- name: Setup dotnet
|
||||
uses: actions/setup-dotnet@v3
|
||||
with:
|
||||
@@ -29,17 +31,18 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: dotnet restore
|
||||
- name: Test with dotnet
|
||||
run: dotnet test --logger trx --results-directory "TestResults-${{ matrix.dotnet-version }}"
|
||||
run: dotnet test --logger trx --results-directory "TestResults-net8.0"
|
||||
- name: Build the package
|
||||
run: dotnet build -p:Version=$next_version
|
||||
run: dotnet build
|
||||
- name: Publish the package
|
||||
run: dotnet publish -p:PublishSingleFile=true,AssemblyName=${{ vars.EXECUTABLE_NAME }} --self-contained false --runtime ${{ vars.RUNTIME }}
|
||||
run: dotnet publish -p:PublishSingleFile=true,AssemblyName=${{ vars.EXECUTABLE_NAME }},Version=$next_version,FileVersion=$next_version,AssemblyVersion=$next_version,InformationalVersion=$next_version --self-contained false --runtime ${{ vars.RUNTIME }}
|
||||
|
||||
- name: List all files
|
||||
run: |
|
||||
find /workspace
|
||||
|
||||
- name: copy the release before compression
|
||||
run: cp -r /workspace/pi-ux-ce/${{ github.event.repository.name }}/bin/Release/net8.0/${{ vars.RUNTIME }}/publish/ .
|
||||
run: cp -r /workspace/pi-ux-ce/${{ github.event.repository.name }}/bin/Release/${{ vars.TARGET_FRAMEWORK }}/${{ vars.RUNTIME }}/publish/ .
|
||||
- uses: montudor/action-zip@v1
|
||||
with:
|
||||
args: zip -qq -r ${{ github.event.repository.name }}.zip publish/
|
||||
@@ -68,7 +71,7 @@ jobs:
|
||||
- name: upload latest executable version with version number
|
||||
run: |
|
||||
curl --user ${{ secrets.USERNAME_GITEA }}:${{ secrets.PASSWORD_GITEA }} \
|
||||
--upload-file /workspace/pi-ux-ce/${{ github.event.repository.name }}/bin/Release/net8.0/${{ vars.RUNTIME }}/publish/OnpremsTools.exe \
|
||||
--upload-file /workspace/pi-ux-ce/${{ github.event.repository.name }}/bin/Release/${{ vars.TARGET_FRAMEWORK }}/${{ vars.RUNTIME }}/publish/${{ vars.EXECUTABLE_NAME }}.exe \
|
||||
"https://gitea.tryton.geeraert.eu/api/packages/pi-ux-ce/generic/${{ github.event.repository.name }}/$next_version/${{ github.event.repository.name }}.exe"
|
||||
|
||||
|
||||
@@ -80,7 +83,7 @@ jobs:
|
||||
- name: upload latest executable version
|
||||
run: |
|
||||
curl --user ${{ secrets.USERNAME_GITEA }}:${{ secrets.PASSWORD_GITEA }} \
|
||||
--upload-file /workspace/pi-ux-ce/${{ github.event.repository.name }}/bin/Release/net8.0/${{ vars.RUNTIME }}/publish/OnpremsTools.exe \
|
||||
--upload-file /workspace/pi-ux-ce/${{ github.event.repository.name }}/bin/Release/${{ vars.TARGET_FRAMEWORK }}/${{ vars.RUNTIME }}/publish/${{ vars.EXECUTABLE_NAME }}.exe \
|
||||
https://gitea.tryton.geeraert.eu/api/packages/pi-ux-ce/generic/${{ github.event.repository.name }}/latest/${{ vars.EXECUTABLE_NAME }}.exe
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
Console.WriteLine("hello")
|
||||
Console.WriteLine("hello ,world");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+1
-17
@@ -5,29 +5,13 @@
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<ApplicationIcon>webclip_webclip-Photoroom.ico</ApplicationIcon>
|
||||
<Title>OnpremsTools</Title>
|
||||
<ApplicationIcon>icon.ico</ApplicationIcon>
|
||||
<Authors>Pierre Geeraert</Authors>
|
||||
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
|
||||
<!-- Versioning properties -->
|
||||
<Version>1.2</Version>
|
||||
<FileVersion>1.2</FileVersion>
|
||||
<AssemblyVersion>1.2.3.4</AssemblyVersion>
|
||||
<InformationalVersion>1.2.3-beta</InformationalVersion>
|
||||
|
||||
<!-- Company information -->
|
||||
<Company>Prometheus Group</Company>
|
||||
<Description>Archive utilities.</Description>
|
||||
<Copyright>Copyright © 2025</Copyright>
|
||||
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Devart.Data.PostgreSql" Version="8.4.235" />
|
||||
<PackageReference Include="Docker.DotNet" Version="3.125.15" />
|
||||
<PackageReference Include="dotConnect.Express.for.PostgreSQL" Version="8.4.235" />
|
||||
<PackageReference Include="Microsoft.Extensions.Configuration" Version="10.0.0-preview.5.25277.114" />
|
||||
<PackageReference Include="System.Configuration.ConfigurationManager" Version="10.0.0-preview.5.25277.114" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
Reference in New Issue
Block a user