Skip to content

Commit

Permalink
AXRepository - gestione mittente / destinatari
Browse files Browse the repository at this point in the history
  • Loading branch information
cattaneoinfoesse committed Jul 25, 2022
1 parent 24c4d0e commit 5236f52
Show file tree
Hide file tree
Showing 10 changed files with 415 additions and 119 deletions.
58 changes: 29 additions & 29 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: .NET
name: build and publish

on:
push:
Expand All @@ -25,18 +25,18 @@ jobs:

- run: cd $GITHUB_WORKSPACE

- uses: actions/setup-python@v4
with:
python-version: '3.x'
architecture: 'x64'
- name: Change package version
run: |
python -c "import urllib.request; urllib.request.urlretrieve('https://raw.githubusercontent.com/il-katta/jenkins-libs/master/resources/it/loopback/jenkins/projedit.py', 'projedit.py')"
foreach ($file in (Get-ChildItem ./ACUtils*/*.csproj) ) {
$version = python projedit.py netstandard $file
Write-Output "::set-output name=PROJECT_VERSION::$version"
}
id: project_version
#- uses: actions/setup-python@v4
# with:
# python-version: '3.x'
# architecture: 'x64'
#- name: Change package version
# run: |
# python -c "import urllib.request; urllib.request.urlretrieve('https://raw.githubusercontent.com/il-katta/jenkins-libs/master/resources/it/loopback/jenkins/projedit.py', 'projedit.py')"
# foreach ($file in (Get-ChildItem ./ACUtils*/*.csproj) ) {
# $version = python projedit.py netstandard $file
# Write-Output "::set-output name=PROJECT_VERSION::$version"
# }
# id: project_version

- name: Restore packages
run: nuget restore ACUtils.sln
Expand All @@ -46,13 +46,13 @@ jobs:
msbuild.exe ACUtils.sln /p:Configuration="Release" /p:Platform="Any CPU" /t:"Restore"
msbuild.exe ACUtils.sln /p:Configuration="Release" /p:Platform="Any CPU" /t:"Rebuild"
- name: Commit deploy
run: |
git config user.name github-actions
git config user.email [email protected]
git add ./ACUtils*/*.csproj
git commit -m "deploy"
git push
#- name: Commit deploy
# run: |
# git config user.name github-actions
# git config user.email [email protected]
# git add ./ACUtils*/*.csproj
# git commit -m "deploy"
# git push

- name: Archive Nuget packages
uses: actions/upload-artifact@v3
Expand All @@ -62,15 +62,15 @@ jobs:
dist/*.nupkg
dist/*.snupkg
- name: Create release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
automatic_release_tag: "${{ steps.project_version.outputs.PROJECT_VERSION }}"
files: |
dist/*.nupkg
dist/*.snupkg
#- name: Create release
# uses: "marvinpinto/action-automatic-releases@latest"
# with:
# repo_token: "${{ secrets.GITHUB_TOKEN }}"
# prerelease: false
# automatic_release_tag: "${{ steps.project_version.outputs.PROJECT_VERSION }}"
# files: |
# dist/*.nupkg
# dist/*.snupkg

- name: Publish
run: |
Expand Down
6 changes: 3 additions & 3 deletions ACUtils.AXRepository/ACUtils.AXRepository.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@
<Authors>Andrea Cattaneo</Authors>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<Version>1.0.0.137</Version>
<PackageVersion>1.0.0.137</PackageVersion>
<Version>1.0.0.138</Version>
<PackageVersion>1.0.0.138</PackageVersion>
<Description>Utility per gestione classi documentali Arxivar</Description>
<NeutralLanguage>it</NeutralLanguage>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<OutputPath>..\dist\</OutputPath>
<AutoGenerateBindingRedirects>false</AutoGenerateBindingRedirects>
</PropertyGroup>

<ItemGroup>
Expand All @@ -21,7 +22,6 @@
<ItemGroup>
<PackageReference Include="ARXivar.WebApi.Client.ArxivarWorkflow.NetFx" Version="2.6.3" />
<PackageReference Include="JsonSubTypes" Version="1.8.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="RestSharp" Version="105.2.3" />
<PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0" />
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
Expand Down
Loading

0 comments on commit 5236f52

Please sign in to comment.