-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(github): include README in package
- Loading branch information
1 parent
74f9b19
commit 2b8011c
Showing
4 changed files
with
18 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,36 @@ | ||
name: 'Pack and Publish' | ||
name: "Pack and Publish" | ||
|
||
description: 'Packs and publishes a .NET Library as a build artifact' | ||
description: "Packs and publishes a .NET Library as a build artifact" | ||
|
||
inputs: | ||
projectPath: | ||
description: 'Path to the project file' | ||
description: "Path to the project file" | ||
required: true | ||
preReleaseVersion: | ||
description: 'The pre-release version to use for the NuGet package' | ||
description: "The pre-release version to use for the NuGet package" | ||
required: true | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Create PreRelease Artifact | ||
run: dotnet pack ${{ inputs.projectPath }} -c Release --no-build --include-symbols -o ./artifacts/prerelease --version-suffix prerelease-${{ inputs.preReleaseVersion }} | ||
run: | | ||
cp ./README.md ./src | ||
dotnet pack ${{ inputs.projectPath }} -c Release -o ./artifacts/prerelease --version-suffix prerelease-${{ inputs.preReleaseVersion }} | ||
shell: pwsh | ||
|
||
- name: 'Save prerelease artifact' | ||
- name: "Save prerelease artifact" | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: prerelease | ||
path: ./artifacts/prerelease/* | ||
|
||
- name: Create Release Artifact | ||
run: dotnet pack ${{ inputs.projectPath }} -c Release --no-build --include-symbols -o ./artifacts/release | ||
run: dotnet pack ${{ inputs.projectPath }} -c Release -o ./artifacts/release | ||
shell: pwsh | ||
|
||
- name: 'Save release artifact' | ||
- name: "Save release artifact" | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: release | ||
path: ./artifacts/release/* | ||
path: ./artifacts/release/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters