File tree Expand file tree Collapse file tree 2 files changed +41
-20
lines changed
Expand file tree Collapse file tree 2 files changed +41
-20
lines changed Original file line number Diff line number Diff line change 11name : .NET Core
22
3+ on :
4+ push :
5+ branches-ignore :
6+ - master
7+
38jobs :
49 build :
5- on :
6- push :
7- branches-ignore :
8- - master
9- runs-on : ubuntu-latest
10+
11+ runs-on : ubuntu-latest
12+
1013 steps :
1114 - uses : actions/checkout@v2
1215 - name : Setup .NET Core
2225 key=${{secrets.MyGet_Key}}
2326 dotnet nuget push -s $source -k $key nuget/*.nupkg
2427
25- release :
26- on :
27- create :
28- types :
29- - tag
30- branches :
31- - master
32- steps :
33- - name : Release Version
34- run : |
35- dotnet pack -c Release -o nuget
36- source=https://api.nuget.org/v3/index.json
37- key=${{secrets.NuGet_Key}}
38- # dotnet nuget push -s $source -k $key nuget/*.nupkg
39- echo "This should only run on tag create"
28+
Original file line number Diff line number Diff line change 1+ name : publish to NuGet
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+
8+ jobs :
9+ publish :
10+
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - uses : actions/checkout@v2
15+
16+ # Required for a specific dotnet version that doesn't come with ubuntu-latest / windows-latest
17+ # Visit bit.ly/2synnZl to see the list of SDKs that are pre-installed with ubuntu-latest / windows-latest
18+ # - name: Setup dotnet
19+ # uses: actions/setup-dotnet@v1
20+ # with:
21+ # dotnet-version: 3.1.100
22+
23+ # Publish
24+ - name : publish on version change
25+ uses : rohith/publish-nuget@v2
26+ with :
27+ PROJECT_FILE_PATH : src/FSharp.Collections.Immutable/FSharp.Collections.Immutable.fsproj # Relative to repository root
28+ # VERSION_FILE_PATH: Directory.Build.props # Filepath with version info, relative to repository root. Defaults to project file
29+ # VERSION_REGEX: <Version>(.*)<\/Version> # Regex pattern to extract version info in a capturing group
30+ # TAG_COMMIT: true # Flag to enable / disalge git tagging
31+ # TAG_FORMAT: v* # Format of the git tag, [*] gets replaced with version
32+ NUGET_KEY : ${{secrets.NuGet_Key}}
You can’t perform that action at this time.
0 commit comments