Compare commits

...
25 Commits
Author SHA1 Message Date
Pierre Geeraert b2d96c56ec display all variables used
Gitea Actions Demo / Explore-Gitea-Actions (8.0.x) (push) Successful in 1m44s
2025-11-06 15:32:52 +00:00
Pierre Geeraert 15ca9820be rename the variable
Gitea Actions Demo / Explore-Gitea-Actions (8.0.x) (push) Successful in 1m41s
2025-11-06 15:31:10 +00:00
Pierre Geeraert 2101f3f460 add comma to trigger buidl
Gitea Actions Demo / Explore-Gitea-Actions (8.0.x) (push) Failing after 1m29s
2025-11-06 15:27:22 +00:00
Pierre Geeraert 12cd95f935 fix the paths
Gitea Actions Demo / Explore-Gitea-Actions (8.0.x) (push) Failing after 1m31s
2025-11-06 15:18:27 +00:00
Pierre Geeraert bb9c065d29 fix runtime
Gitea Actions Demo / Explore-Gitea-Actions (8.0.x) (push) Successful in 1m45s
2025-11-06 15:08:28 +00:00
Pierre Geeraert c82178fe7c remove the version dotnet build
Gitea Actions Demo / Explore-Gitea-Actions (8.0.x) (push) Successful in 1m54s
2025-11-06 14:26:35 +00:00
Pierre Geeraert feec97b759 add the version in the dotnet publish instead
Gitea Actions Demo / Explore-Gitea-Actions (8.0.x) (push) Successful in 1m49s
2025-11-06 14:23:16 +00:00
Pierre Geeraert 11ce381d43 add more details of exe
Gitea Actions Demo / Explore-Gitea-Actions (8.0.x) (push) Successful in 1m40s
2025-11-06 14:19:47 +00:00
Pierre Geeraert 9d02ea9d1e change text to generate a new build 2025-11-06 14:18:02 +00:00
Pierre Geeraert f43cfca98c remove vars of dotnet
Gitea Actions Demo / Explore-Gitea-Actions (8.0.x) (push) Successful in 1m49s
2025-11-06 14:09:20 +00:00
Pierre Geeraert e2c4bc3e19 fix name of exec 2025-11-06 14:04:59 +00:00
Pierre Geeraert 6408840b84 fix name of exec and use a variable for the dotnet version
Gitea Actions Demo / Explore-Gitea-Actions (8.0.x) (push) Failing after 1m37s
2025-11-06 14:04:10 +00:00
Pierre Geeraert 956b9b09a0 remove icon fro the CI and put it back in the csproj
Gitea Actions Demo / Explore-Gitea-Actions (8.0.x) (push) Failing after 1m45s
2025-11-06 13:59:39 +00:00
Pierre Geeraert f0561a039f remove the icon name from project file 2025-11-06 13:58:38 +00:00
Pierre Geeraert 909eb6d9b9 removing cache
Gitea Actions Demo / Explore-Gitea-Actions (8.0.x) (push) Failing after 1m31s
2025-11-06 13:50:24 +00:00
Pierre Geeraert 39dbae439b update the icon 2025-11-06 13:49:53 +00:00
Pierre Geeraert a5bb02717d remove cache path
Gitea Actions Demo / Explore-Gitea-Actions (8.0.x) (push) Failing after 1m20s
2025-11-06 13:48:19 +00:00
Pierre Geeraert 1f1b7625cd change
Gitea Actions Demo / Explore-Gitea-Actions (8.0.x) (push) Failing after 1m24s
2025-11-06 13:45:27 +00:00
Pierre Geeraert f24585b77d change
Gitea Actions Demo / Explore-Gitea-Actions (8.0.x) (push) Failing after 4s
2025-11-06 13:44:14 +00:00
Pierre Geeraert 77f4bd59f8 manage icon
Gitea Actions Demo / Explore-Gitea-Actions (8.0.x) (push) Failing after 21s
2025-11-06 13:42:19 +00:00
Pierre Geeraert c6225716cf try cache 2025-11-06 13:39:03 +00:00
Pierre Geeraert 4de966504b add ;
Gitea Actions Demo / Explore-Gitea-Actions (8.0.x) (push) Failing after 1m30s
2025-11-06 13:37:25 +00:00
Pierre Geeraert 5072175e7b modified: Project.csproj
Gitea Actions Demo / Explore-Gitea-Actions (8.0.x) (push) Failing after 1m34s
2025-11-06 13:33:29 +00:00
Pierre Geeraert 31cb9da0ef code as well
Gitea Actions Demo / Explore-Gitea-Actions (8.0.x) (push) Failing after 1m45s
2025-11-06 13:30:34 +00:00
Pierre Geeraert 060b351ca8 try vars 2025-11-06 13:27:10 +00:00
4 changed files with 45 additions and 16 deletions
+17 -16
View File
@@ -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 "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 --self-contained false --runtime win-x64
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/win-x64/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/
@@ -51,12 +54,12 @@ jobs:
- 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/${{ github.event.repository.name }}/latest/${{ github.event.repository.name }}.exe
https://gitea.tryton.geeraert.eu/api/packages/pi-ux-ce/generic/${{ github.event.repository.name }}/latest/${{ vars.EXECUTABLE_NAME }}.exe
- 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/${{ github.event.repository.name }}/latest/${{ github.event.repository.name }}.zip
https://gitea.tryton.geeraert.eu/api/packages/pi-ux-ce/generic/${{ github.event.repository.name }}/latest/${{ vars.EXECUTABLE_NAME }}.zip
- name: upload latest zip version with version number
run: |
@@ -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/win-x64/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"
@@ -76,14 +79,12 @@ jobs:
run: |
curl --user ${{ secrets.USERNAME_GITEA }}:${{ secrets.PASSWORD_GITEA }} \
--upload-file ${{ github.event.repository.name }}.zip \
https://gitea.tryton.geeraert.eu/api/packages/pi-ux-ce/generic/${{ github.event.repository.name }}/latest/${{ github.event.repository.name }}.zip
https://gitea.tryton.geeraert.eu/api/packages/pi-ux-ce/generic/${{ github.event.repository.name }}/latest/${{ vars.EXECUTABLE_NAME }}.zip
- 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/win-x64/publish/OnpremsTools.exe \
https://gitea.tryton.geeraert.eu/api/packages/pi-ux-ce/generic/${{ github.event.repository.name }}/latest/${{ github.event.repository.name }}.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
- name: update version in the variable
+11
View File
@@ -0,0 +1,11 @@
namespace dotnet_build;
class Program
{
static void Main(string[] args)
{
Console.WriteLine("hello ,world");
}
}
+17
View File
@@ -0,0 +1,17 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<ApplicationIcon>icon.ico</ApplicationIcon>
<Authors>Pierre Geeraert</Authors>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<!-- Versioning properties -->
<!-- Company information -->
</PropertyGroup>
</Project>
Executable
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB