Skip to content

Commit

Permalink
Add Release related things.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamil Maqdis Anton committed Nov 25, 2020
1 parent e6d432e commit d2b3084
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 2 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/publish_to_NuGet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish to nuget

on:
release:
types: [created, edited]

jobs:
publish:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --no-restore --verbosity normal
- name: Create the package
run: dotnet pack --configuration Release -o Release -p:PackageVersion=${GITHUB_REF/refs\/tags\/v/''} --include-source
- name: Publish the package to NuGet
env:
NUGET_AUTH_TOKEN: ${{secrets.PRELUDE_NUGET_AUTH_TOKEN}}
run: dotnet nuget push Release/*.nupkg --skip-duplicate --no-symbols true --source https://api.nuget.org/v3/index.json -k ${NUGET_AUTH_TOKEN}
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,8 @@ Temporary Items

*/bin
*/obj

Release/
site/

mkdocs.yml
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# FSharp.Prelude
Some functional extensions to F#
Some extensions for F#
9 changes: 8 additions & 1 deletion src/FSharp.Prelude.fsproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netcoreapp3.1; net5.0</TargetFrameworks>
<TargetFramework>netcoreapp3.1</TargetFramework>
<PackageId>FSharp.Prelude</PackageId>
<Authors>Jamil Maqdis Anton</Authors>
<PackageDescription>Some extensions for F#</PackageDescription>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/jamil7/FSharp.Prelude</RepositoryUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageTags>F#; Async; Result; AsyncResult</PackageTags>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit d2b3084

Please sign in to comment.