Compare commits

..
11 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
2 changed files with 14 additions and 10 deletions
+13 -9
View File
@@ -17,10 +17,13 @@ jobs:
run: | run: |
latest="${{ vars.VERSION }}" latest="${{ vars.VERSION }}"
next_version=$(echo "$latest" | awk -F. -v OFS=. '{$NF += 1 ; print}') next_version=$(echo "$latest" | awk -F. -v OFS=. '{$NF += 1 ; print}')
echo "Next version: $next_version"
echo "next_version=$next_version" >> $GITHUB_ENV echo "next_version=$next_version" >> $GITHUB_ENV
echo "${{ vars.EXECUTABLE_NAME }}" echo "Variables used :"
echo "${{ vars.RUNTIME }}" 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 - name: Setup dotnet
uses: actions/setup-dotnet@v3 uses: actions/setup-dotnet@v3
with: with:
@@ -28,17 +31,18 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: dotnet restore run: dotnet restore
- name: Test with dotnet - 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 - name: Build the package
run: dotnet build -p:Version=$next_version run: dotnet build
- name: Publish the package - 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 - name: List all files
run: | run: |
find /workspace find /workspace
- name: copy the release before compression - name: copy the release before compression
run: cp -r /workspace/pi-ux-ce/${{ github.event.repository.name }}/bin/Release/${{ matrix.dotnet-version }}/${{ 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 - uses: montudor/action-zip@v1
with: with:
args: zip -qq -r ${{ github.event.repository.name }}.zip publish/ args: zip -qq -r ${{ github.event.repository.name }}.zip publish/
@@ -67,7 +71,7 @@ jobs:
- name: upload latest executable version with version number - name: upload latest executable version with version number
run: | run: |
curl --user ${{ secrets.USERNAME_GITEA }}:${{ secrets.PASSWORD_GITEA }} \ curl --user ${{ secrets.USERNAME_GITEA }}:${{ secrets.PASSWORD_GITEA }} \
--upload-file /workspace/pi-ux-ce/${{ github.event.repository.name }}/bin/Release/${{ matrix.dotnet-version }}/${{ 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" "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 - name: upload latest executable version
run: | run: |
curl --user ${{ secrets.USERNAME_GITEA }}:${{ secrets.PASSWORD_GITEA }} \ curl --user ${{ secrets.USERNAME_GITEA }}:${{ secrets.PASSWORD_GITEA }} \
--upload-file /workspace/pi-ux-ce/${{ github.event.repository.name }}/bin/Release/${{ matrix.dotnet-version }}/${{ 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 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) static void Main(string[] args)
{ {
Console.WriteLine("hello"); Console.WriteLine("hello ,world");
} }
} }