Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chor: Move to setup-net v2 #6

Merged
merged 1 commit into from
Jul 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions .github/workflows/dotnet.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: .NET
name: Publish Package

on:
push:
Expand All @@ -22,7 +22,7 @@ jobs:
with:
prefix: CI_
- name: Setup .NET
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v2
with:
dotnet-version: |
6.x
Expand All @@ -35,11 +35,9 @@ jobs:
- name: Build version (master)
if: env.CI_GITHUB_REF_SLUG == 'master'
run: echo "PUBLISH_VERSION=${{ steps.nbgv.outputs.SimpleVersion }}.${{ steps.nbgv.outputs.VersionHeight }}" >> $GITHUB_ENV
shell: bash
- name: Build version (PR)
if: env.CI_GITHUB_REF_SLUG != 'master'
run: echo "PUBLISH_VERSION=${{ steps.nbgv.outputs.SimpleVersion }}.${{ steps.nbgv.outputs.VersionHeight }}-${{ env.CI_GITHUB_HEAD_REF_SLUG }}" >> $GITHUB_ENV
shell: bash
- name: Build
run: dotnet build --configuration Release -p:Version=${{ env.PUBLISH_VERSION }} --no-restore
- name: Pack
Expand Down
Loading