Files
csharp/.github/workflows/draft.yaml
dependabot[bot] ddb6c260d2 Bump actions/checkout from 3 to 4 (#1391)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-05 04:41:50 -07:00

39 lines
769 B
YAML

name: Draft Release
on:
push:
branches: [ master ]
jobs:
draft:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
7.0.x
- name: dotnet restore
run: dotnet restore --verbosity minimal --configfile nuget.config
- name: dotnet test
run: dotnet test
- uses: dotnet/nbgv@master
with:
setAllVars: true
- name: create release
shell: pwsh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create -d --generate-notes v$env:NBGV_NuGetPackageVersion