Skip to content
New issue

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

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

Already on GitHub? # to your account

switch to GitHub Actions #35

Merged
merged 1 commit into from
Mar 11, 2022
Merged
Show file tree
Hide file tree
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
49 changes: 49 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Build CodeGenHelpers

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
name: Build CodeGenHelpers
runs-on: windows-latest
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1

steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup .NET Core 6.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
include-prerelease: true

- name: NuGet Restore
run: dotnet restore

- name: Build Packages
run: dotnet build .\CodeGenHelpers.sln -c Release

- name: Test
run: dotnet test "${{ env.WORKING_DIRECTORY }}" --no-build -c Release

- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: NuGet
path: Artifacts/

- name: NuGet Publish (In-House)
if: ${{ github.event_name != 'pull_request' }}
uses: dansiegel/publish-nuget@v1.01
with:
filename: 'Artifacts/*.nupkg'
feedUrl: ${{ secrets.IN_HOUSE_NUGET_FEED }}
apiKey: ${{ secrets.IN_HOUSE_API_KEY }}
59 changes: 0 additions & 59 deletions azure-pipelines.yml

This file was deleted.