FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
TensorFlow.NET/.github/workflows/release.yml at master · feelsyt/TensorFlow.NET · GitHub
feelsyt
/
TensorFlow.NET
Public
forked from
SciSharp/TensorFlow.NET
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
TensorFlow.NET
/
.github
/
workflows
/
release.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
62 lines (51 loc) · 1.98 KB
Breadcrumbs
TensorFlow.NET
/
.github
/
workflows
/
release.yml
Copy path
File metadata and controls
62 lines (51 loc) · 1.98 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name
:
auto-release
on
:
workflow_run
:
workflows
:
["release-prepare"]
types
:
-
completed
env
:
MYGET_API_TOKEN
:
${{ SECRETS.MYGET_API_KEY }}
GITHUB_TOKEN
:
${{ SECRETS.RINNE_GITHUB_TOKEN }}
jobs
:
release_to_myget
:
runs-on
:
windows-latest
#
needs: run-semantic-release
steps
:
-
uses
:
actions/checkout@v3
-
name
:
Setup .NET 6.0.x SDK
uses
:
actions/setup-dotnet@v3
with
:
dotnet-version
:
6.0.x
-
name
:
Check .NET info
run
:
dotnet --info
-
name
:
Install dependencies
run
:
dotnet restore
-
name
:
Build solution
run
:
dotnet build -c Release --no-restore
-
name
:
Pack packages
run
:
|
git fetch --unshallow;
git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*";
git fetch origin;
$LastTag = git describe --tags;
$DroppedTag = ($LastTag).TrimStart('v');
echo "Last tag is: $DroppedTag";
$Suffix = "-nightly"
$Version = "${DroppedTag}${Suffix}";
echo "Publishing version: $Version";
dotnet pack ./src/TensorFlowNET.Core/Tensorflow.Binding.csproj -c Release -o packages /p:PackageVersion=$Version /p:Version=$Version;
dotnet pack ./src/TensorFlowNET.Keras/Tensorflow.Keras.csproj -c Release -o packages /p:PackageVersion=$Version /p:Version=$Version;
dotnet pack ./src/TensorflowNET.Hub/Tensorflow.Hub.csproj -c Release -o packages /p:PackageVersion=$Version /p:Version=$Version;
if($LastExitCode -ne 0)
{
Write-Warning -Message "Pack packages warming, last exit code is ${LastExitCode}."
$LastExitCode = 0;
}
-
name
:
Upload packages artifacts
uses
:
actions/upload-artifact@v4.0.0
with
:
name
:
"
drop-ci-packages
"
path
:
'
./packages
'
-
name
:
Push TensorFlow.NET to myget.org
run
:
dotnet nuget push .\packages\TensorFlow*.nupkg --source https://www.myget.org/F/scisharp/api/v3/index.json -k ${{ secrets.MYGET_API_KEY }} --skip-duplicate
Back
|
FazBrowse Home
|
New Git URL