|
18 | 18 | GITHUB_FEED: https://nuget.pkg.github.com/koenbeuk/ |
19 | 19 | GITHUB_USER: koenbeuk |
20 | 20 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
21 | | - # Official NuGet Feed settings |
22 | | - NUGET_FEED: https://api.nuget.org/v3/index.json |
23 | | - NUGET_KEY: ${{ secrets.NUGET_KEY }} |
24 | 21 |
|
25 | 22 | jobs: |
26 | 23 | build-v1: |
@@ -113,36 +110,3 @@ jobs: |
113 | 110 | do |
114 | 111 | dotnet nuget push $f --source $GITHUB_FEED --api-key ${{github.token}} --skip-duplicate --no-symbols true |
115 | 112 | done |
116 | | - |
117 | | - deploy: |
118 | | - needs: [build, build-v1] |
119 | | - if: github.event_name == 'release' |
120 | | - runs-on: ubuntu-latest |
121 | | - steps: |
122 | | - - uses: actions/checkout@v2 |
123 | | - - name: Setup .NET Core |
124 | | - uses: actions/setup-dotnet@v1 |
125 | | - with: |
126 | | - dotnet-version: 5.0.x |
127 | | - - name: Create Release NuGet package |
128 | | - run: | |
129 | | - arrTag=(${GITHUB_REF//\// }) |
130 | | - VERSION="${arrTag[2]}" |
131 | | - echo Version: $VERSION |
132 | | - CONFIGURATION=$([ "${VERSION:0:2}" == "v1" ] && echo "ReleaseV1" || echo "Release") |
133 | | - VERSION="${VERSION//v}" |
134 | | - echo Clean Version: $VERSION |
135 | | - echo Configuration: $CONFIGURATION |
136 | | - dotnet pack -v normal -c $CONFIGURATION --include-symbols --include-source -p:PackageVersion=$VERSION -o nupkg EntityFrameworkCore.Triggered.Core.slnf |
137 | | - - name: Push to GitHub Feed |
138 | | - run: | |
139 | | - for f in ./nupkg/*.nupkg |
140 | | - do |
141 | | - dotnet nuget push $f --source $GITHUB_FEED --api-key ${{github.token}} --skip-duplicate --no-symbols true |
142 | | - done |
143 | | - - name: Push to NuGet Feed |
144 | | - run: | |
145 | | - for f in ./nupkg/*.nupkg |
146 | | - do |
147 | | - dotnet nuget push $f --source $NUGET_FEED --skip-duplicate --api-key $NUGET_KEY |
148 | | - done |
0 commit comments