Template
Compare commits
21
Commits
4de966504b
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b2d96c56ec | ||
|
|
15ca9820be | ||
|
|
2101f3f460 | ||
|
|
12cd95f935 | ||
|
|
bb9c065d29 | ||
|
|
c82178fe7c | ||
|
|
feec97b759 | ||
|
|
11ce381d43 | ||
|
|
9d02ea9d1e | ||
|
|
f43cfca98c | ||
|
|
e2c4bc3e19 | ||
|
|
6408840b84 | ||
|
|
956b9b09a0 | ||
|
|
f0561a039f | ||
|
|
909eb6d9b9 | ||
|
|
39dbae439b | ||
|
|
a5bb02717d | ||
|
|
1f1b7625cd | ||
|
|
f24585b77d | ||
|
|
77f4bd59f8 | ||
|
|
c6225716cf |
@@ -7,7 +7,6 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
dotnet-version: [ '8.0.x' ]
|
dotnet-version: [ '8.0.x' ]
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
@@ -18,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:
|
||||||
@@ -29,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/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
|
- 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/
|
||||||
@@ -68,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/net8.0/${{ 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 }}/$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"
|
||||||
|
|
||||||
|
|
||||||
@@ -80,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/net8.0/${{ 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
@@ -4,7 +4,7 @@
|
|||||||
{
|
{
|
||||||
static void Main(string[] args)
|
static void Main(string[] args)
|
||||||
{
|
{
|
||||||
Console.WriteLine("hello");
|
Console.WriteLine("hello ,world");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-9
@@ -5,20 +5,12 @@
|
|||||||
<TargetFramework>net8.0</TargetFramework>
|
<TargetFramework>net8.0</TargetFramework>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<ApplicationIcon>webclip_webclip-Photoroom.ico</ApplicationIcon>
|
<ApplicationIcon>icon.ico</ApplicationIcon>
|
||||||
<Title>OnpremsTools</Title>
|
|
||||||
<Authors>Pierre Geeraert</Authors>
|
<Authors>Pierre Geeraert</Authors>
|
||||||
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
|
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
|
||||||
<!-- Versioning properties -->
|
<!-- Versioning properties -->
|
||||||
<Version>1.2</Version>
|
|
||||||
<FileVersion>1.2</FileVersion>
|
|
||||||
<AssemblyVersion>1.2.3.4</AssemblyVersion>
|
|
||||||
<InformationalVersion>1.2.3-beta</InformationalVersion>
|
|
||||||
|
|
||||||
<!-- Company information -->
|
<!-- Company information -->
|
||||||
<Company>Prometheus Group</Company>
|
|
||||||
<Description>Archive utilities.</Description>
|
|
||||||
<Copyright>Copyright © 2025</Copyright>
|
|
||||||
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user