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 c014d85Copy full SHA for c014d85
.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"
+ - run: echo "hello $GITHUB_REF and ${{ github.event.release.tag_name }}"
+ - uses: actions/setup-dotnet@v1
12
+ - uses: actions/checkout@v2
13
+ with:
14
+ ref: $GITHUB_REF
15
+ fetch-depth: 0
16
+ - name: build
17
+ run: dotnet build --configuration Release
18
+ - name: pack
19
+ run: dotnet pack --no-build \
20
+ --configuration Release mongo-declarative-indexes/mongo-declarative-indexes.csproj \
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