Skip to content

Commit

Permalink
Unified the CI pipeline into a single file
Browse files Browse the repository at this point in the history
Pushing and releasing ran different CI so I changed that
  • Loading branch information
ByronMayne committed Jan 21, 2024
1 parent 393c31f commit f1f4dac
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Publish
on:
release:
types: [published]
push: {}
pull_request: {}

env:
Configuration: Release
ProjectDir: src\SourceGenerator.Foundations\
Expand Down Expand Up @@ -30,5 +33,7 @@ jobs:
run: dotnet test ${{env.SolutionPath}}
- name: Build
run: dotnet build ${{env.SolutionPath}} -t:pack -p:PackageVersion=${{env.GitVersion_SemVer}} --configuration ${{env.Configuration}}
# -- Release Only --
- name: Push NuGet
if: ${{ github.event_name == 'release' }}
run: dotnet nuget push ${{env.ProjectDir}}bin\${{env.Configuration}}\*.nupkg --skip-duplicate --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json
30 changes: 0 additions & 30 deletions .github/workflows/dotnet.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
won't exist.
==================================================-->
<!-- TaskFactory is set to 'TaskHostFactory' so that we don't get the 'dll' is locked error -->
<UsingTask TaskName="FilterAssembliesTask" AssemblyFile="$(SGFMsBuildPath)" TaskFactory="TaskHostFactory"/>
<UsingTask TaskName="FilterAssembliesTask" AssemblyFile="$(SGFMsBuildPath)" TaskFactory="TaskHostFactory"/>
<Target Name="SGF_EmbedDependencies" AfterTargets="ResolveAssemblyReferences">
<FilterAssembliesTask Assemblies="@(ReferencePath->'%(RootDir)%(Directory)%(Filename)%(Extension)')">
<Output TaskParameter="FilteredAssemblies" ItemName="SGF_FilteredAssembly" />
Expand Down

0 comments on commit f1f4dac

Please sign in to comment.