Skip to content

Commit

Permalink
Disable package publishing on each push to master
Browse files Browse the repository at this point in the history
  • Loading branch information
oformaniuk committed May 31, 2020
1 parent a245e02 commit e90d908
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,34 +92,3 @@ jobs:
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


publish:
needs: [build,test-windows,test-linux,test-macos,sonar-ci]
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.100
- name: Fetch
run: git fetch --depth 500
- name: Determine version
run: echo "::set-env name=VERSION::$(git describe --tags --abbrev=0)"

- name: Build netstandard2.0
working-directory: ./source
run: dotnet build Handlebars.Code.sln -c Release -f netstandard2.0
- name: Build netstandard1.3
working-directory: ./source
run: dotnet build Handlebars.Code.sln -c Release -f netstandard1.3
- name: Build net452
working-directory: ./source
run: dotnet build Handlebars.Code.sln -c Release -f net452

- name: publish
working-directory: ./source
run: dotnet pack Handlebars.Code.sln --no-build -c Release /p:version=${{ env.VERSION }}.${{ github.run_number }} && dotnet nuget push **/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json -n true

0 comments on commit e90d908

Please sign in to comment.