Skip to content

Add pushing to github package repo when merging to main (#602) #597

Add pushing to github package repo when merging to main (#602)

Add pushing to github package repo when merging to main (#602) #597

Workflow file for this run

name: CI
on:
push:
branches:
- main
- release/*
paths-ignore:
- 'docs/**'
pull_request:
branches:
- main
paths-ignore:
- 'docs/**'
jobs:
build:
runs-on: windows-latest
steps:
- name: Clone Toolkit
uses: actions/checkout@v1
- name: Setup Visual Studio Command Prompt
uses: microsoft/[email protected]
- name: Build
run: |
msbuild /restore /t:Build src/Esri.ArcGISRuntime.Toolkit.sln /p:Configuration=Release
# msbuild /restore /t:Build src/Esri.ArcGISRuntime.ARToolkit.sln /p:Configuration=Release
- name: Upload artfacts
uses: actions/upload-artifact@v1
with:
name: NuGet Packages
path: Output/NuGet/Release
- name: Publish to Esri Nuget Repo
if: github.event.pull_request.merged
run: |
dotnet nuget push Output\NuGet\Release\*.nupkg --api-key ${{ secrets.GithubPushPackagesSecret }} --source https://nuget.pkg.github.com/esri/index.json