We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cca7b5 commit f8df972Copy full SHA for f8df972
.github/workflows/publish.yml
@@ -7,5 +7,18 @@ jobs:
7
publish:
8
runs-on: ubuntu-latest
9
steps:
10
- - id: echo
11
- run: echo "hello $GITHUB_REF"
+ - uses: actions/setup-dotnet@v1
+ - uses: actions/checkout@v2
12
+ with:
13
+ ref: ${{ github.event.release.tag_name }}
14
+ fetch-depth: 0
15
+ - run: dotnet build --configuration Release
16
+ - name: pack
17
+ run: >
18
+ dotnet pack mongo-declarative-indexes/mongo-declarative-indexes.csproj \
19
+ --no-build \
20
+ --configuration Release \
21
+ -p:PackageVersion=${{ github.event.release.tag_name }} \
22
+ --output .
23
+ - name: push
24
+ run: dotnet nuget push *.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{secrets.NUGET_API_KEY}}
0 commit comments