Browse Source

Update build-and-test.yml

af/merge-core
James Jackson-South 6 years ago
parent
commit
ef3197a2ee
  1. 46
      .github/workflows/build-and-test.yml

46
.github/workflows/build-and-test.yml

@ -69,30 +69,24 @@ jobs:
token: ${{secrets.CODECOV_TOKEN}} token: ${{secrets.CODECOV_TOKEN}}
file: "coverage.xml" file: "coverage.xml"
flags: unittests flags: unittests
# Publish: # Publish:
runs-on: windows-latest # runs-on: windows-latest
needs: [Build] # needs: [Build]
if: github.event_name == 'push' # if: github.event_name == 'push'
steps: # steps:
- uses: actions/checkout@v1 # - uses: actions/checkout@v1
# - name: install nuget
- name: install nuget # uses: NuGet/setup-nuget@v1
uses: NuGet/setup-nuget@v1 # - name: Enable long file paths
# run: git config --global core.longpaths true
- name: Enable long file paths # - name: Update submodules
run: git config --global core.longpaths true # run: git submodule -q update --init --recursive
# - name: Build
- name: Update submodules # shell: pwsh
run: git submodule -q update --init --recursive # run: |
# $DebugPreference = "Continue"
- name: Build # ./build.ps1
shell: pwsh # - name: Publish to nightly feed -myget
run: | # if: success()
$DebugPreference = "Continue" # run: nuget.exe push .\artifacts\*.nupkg ${{secrets.MYGET_TOKEN}} -Source https://www.myget.org/F/sixlabors/api/v2/package
./build.ps1 # TODO: if github.ref starts with 'refs/tags' then it was tag push and we can optionally push out package to nuget.org
- name: Publish to nightly feed -myget
if: success()
run: nuget.exe push .\artifacts\*.nupkg ${{secrets.MYGET_TOKEN}} -Source https://www.myget.org/F/sixlabors/api/v2/package
# TODO: if github.ref starts with 'refs/tags' then it was tag push and we can optionally push out package to nuget.org

Loading…
Cancel
Save