it is working , moving to version 2.0.0 as it is a big change
Gitea Actions Demo / Explore-Gitea-Actions (8.0.x) (push) Successful in 1m38s

This commit is contained in:
2025-06-10 12:48:07 +00:00
parent 16806a90b9
commit 2de68761af
+3 -7
View File
@@ -2,10 +2,6 @@ name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push] on: [push]
env:
latest_version: ${{vars.VERSION}} |awk -F. -v OFS=. '{$NF += 1 ; print}'
jobs: jobs:
Explore-Gitea-Actions: Explore-Gitea-Actions:
strategy: strategy:
@@ -39,7 +35,7 @@ jobs:
- 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-${{ matrix.dotnet-version }}"
- name: Build the package - name: Build the package
run: dotnet build -p:Version=${{env.latest_version}} run: dotnet build -p:Version=$next_version
- name: Publish the package - name: Publish the package
run: dotnet publish -p:PublishSingleFile=true --self-contained false --runtime win-x64 run: dotnet publish -p:PublishSingleFile=true --self-contained false --runtime win-x64
- name: copy the release before compression - name: copy the release before compression
@@ -73,7 +69,7 @@ jobs:
run: | run: |
curl --user ${{ secrets.USERNAME_GITEA }}:${{ secrets.PASSWORD_GITEA }} \ curl --user ${{ secrets.USERNAME_GITEA }}:${{ secrets.PASSWORD_GITEA }} \
--upload-file /workspace/pi-ux-ce/Simpsons_generator/bin/Release/net8.0/win-x64/publish/Simpsons_generator.exe \ --upload-file /workspace/pi-ux-ce/Simpsons_generator/bin/Release/net8.0/win-x64/publish/Simpsons_generator.exe \
"https://gitea.tryton.geeraert.eu/api/packages/pi-ux-ce/generic/Simpsons_generator/${{env.latest_version}}/Simpsons_generator.exe" "https://gitea.tryton.geeraert.eu/api/packages/pi-ux-ce/generic/Simpsons_generator/$next_version/Simpsons_generator.exe"
- name: upload latest zip version - name: upload latest zip version
@@ -95,4 +91,4 @@ jobs:
curl -X PUT -H "Content-Type: application/json" \ curl -X PUT -H "Content-Type: application/json" \
--user ${{ secrets.USERNAME_GITEA }}:${{ secrets.PASSWORD_GITEA }} \ --user ${{ secrets.USERNAME_GITEA }}:${{ secrets.PASSWORD_GITEA }} \
https://gitea.tryton.geeraert.eu/api/v1/repos/pi-ux-ce/Simpsons_generator/actions/variables/VERSION \ https://gitea.tryton.geeraert.eu/api/v1/repos/pi-ux-ce/Simpsons_generator/actions/variables/VERSION \
-d '{"Value":${{env.latest_version}}}' -d '{"Value":$next_version}'