-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AXRepository - gestione mittente / destinatari
- Loading branch information
1 parent
24c4d0e
commit 5236f52
Showing
10 changed files
with
415 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: .NET | ||
name: build and publish | ||
|
||
on: | ||
push: | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.