Update .gitea/workflows/dotnetbuild_runner.yaml
Gitea Actions Demo / Explore-Gitea-Actions (8.0.x) (push) Has been cancelled
Gitea Actions Demo / Explore-Gitea-Actions (8.0.x) (push) Has been cancelled
This commit is contained in:
@@ -10,6 +10,11 @@ jobs:
|
|||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: setup new version
|
||||||
|
run: echo ${{vars.VERSION}} |awk -F. -v OFS=. '{$NF += 1 ; print}'
|
||||||
|
env: latest_version
|
||||||
|
- name: show new version
|
||||||
|
run: echo ${{latest_version}}
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
#- name: Get previous version
|
#- name: Get previous version
|
||||||
# run: |
|
# run: |
|
||||||
@@ -18,10 +23,7 @@ jobs:
|
|||||||
# https://gitea.tryton.geeraert.eu/api/v1/repos/pi-ux-ce/Simpsons_generator/actions/variables/VERSION |jq -r .data
|
# https://gitea.tryton.geeraert.eu/api/v1/repos/pi-ux-ce/Simpsons_generator/actions/variables/VERSION |jq -r .data
|
||||||
# env: previous_version
|
# env: previous_version
|
||||||
|
|
||||||
- name: setup new version
|
|
||||||
run: echo ${{vars.VERSION}} |awk -F. -v OFS=. '{$NF += 1 ; print}'
|
|
||||||
env: latest_version
|
|
||||||
|
|
||||||
|
|
||||||
- name: Setup dotnet
|
- name: Setup dotnet
|
||||||
uses: actions/setup-dotnet@v3
|
uses: actions/setup-dotnet@v3
|
||||||
@@ -32,7 +34,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=$latest_version
|
run: dotnet build -p:Version=${{latest_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
|
||||||
|
|||||||
Reference in New Issue
Block a user