Compare commits

..
9 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
2 changed files with 13 additions and 9 deletions
+12 -8
View File
@@ -17,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:
@@ -30,15 +33,16 @@ jobs:
- name: Test with dotnet
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/
@@ -67,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/${{ vars.EXECUTABLE_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 }}/$next_version/${{ github.event.repository.name }}.exe"
@@ -79,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/${{ vars.EXECUTABLE_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
+1 -1
View File
@@ -4,7 +4,7 @@
{
static void Main(string[] args)
{
Console.WriteLine("hello");
Console.WriteLine("hello ,world");
}
}