Skip to content

Commit 17799b6

Browse files
committed
Added CI and changed MyGet publish to develop branch only
1 parent b7ca3de commit 17799b6

File tree

3 files changed

+27
-8
lines changed

3 files changed

+27
-8
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches-ignore:
66
- master
7+
- develop
78

89
jobs:
910
build:
@@ -18,11 +19,3 @@ jobs:
1819
run: |
1920
DOTNET_CLI_TELEMETRY_OPTOUT=1
2021
dotnet build --nologo --configuration Release
21-
dotnet pack --no-build -c Release -o nuget
22-
- name: MyGet push
23-
run: |
24-
source=https://www.myget.org/F/fsharp-collections-immutable/api/v3/index.json
25-
key=${{secrets.MyGet_Key}}
26-
dotnet nuget push -s $source -k $key nuget/*.nupkg
27-
28-

.github/workflows/publish_ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: publish to MyGet
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
8+
jobs:
9+
build:
10+
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Setup .NET Core
16+
uses: actions/setup-dotnet@v1
17+
- name: Build with dotnet
18+
run: |
19+
DOTNET_CLI_TELEMETRY_OPTOUT=1
20+
dotnet build --nologo --configuration Release
21+
dotnet pack --no-build -c Release -o nuget
22+
- name: MyGet push
23+
run: |
24+
source=https://www.myget.org/F/fsharp-collections-immutable/api/v3/index.json
25+
key=${{secrets.MyGet_Key}}
26+
dotnet nuget push -s $source -k $key nuget/*.nupkg

0 commit comments

Comments
 (0)