From d2b3084d3bcdcbec7fc9b52d5ef61189ad12b86d Mon Sep 17 00:00:00 2001 From: Jamil Maqdis Anton Date: Wed, 25 Nov 2020 18:10:33 +0100 Subject: [PATCH] Add Release related things. --- .github/workflows/publish_to_NuGet.yml | 24 ++++++++++++++++++++++++ .gitignore | 5 +++++ README.md | 2 +- src/FSharp.Prelude.fsproj | 9 ++++++++- 4 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/publish_to_NuGet.yml diff --git a/.github/workflows/publish_to_NuGet.yml b/.github/workflows/publish_to_NuGet.yml new file mode 100644 index 0000000..82f67e6 --- /dev/null +++ b/.github/workflows/publish_to_NuGet.yml @@ -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} \ No newline at end of file diff --git a/.gitignore b/.gitignore index b5ccfaa..271567e 100644 --- a/.gitignore +++ b/.gitignore @@ -29,3 +29,8 @@ Temporary Items */bin */obj + +Release/ +site/ + +mkdocs.yml \ No newline at end of file diff --git a/README.md b/README.md index 628cfa6..8afdd49 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ # FSharp.Prelude -Some functional extensions to F# +Some extensions for F# diff --git a/src/FSharp.Prelude.fsproj b/src/FSharp.Prelude.fsproj index ba374ef..b842c2e 100644 --- a/src/FSharp.Prelude.fsproj +++ b/src/FSharp.Prelude.fsproj @@ -1,7 +1,14 @@  - netcoreapp3.1; net5.0 + netcoreapp3.1 + FSharp.Prelude + Jamil Maqdis Anton + Some extensions for F# + git + https://github.com/jamil7/FSharp.Prelude + MIT + F#; Async; Result; AsyncResult