Skip to content

Commit

Permalink
Merge pull request joaomatossilva#182 from joaomatossilva/sdk-upgrade
Browse files Browse the repository at this point in the history
Sdk upgrade and Only target netstandard 2.0
  • Loading branch information
joaomatossilva authored Jun 12, 2024
2 parents 4f2d354 + b401ec5 commit 2eda0bb
Show file tree
Hide file tree
Showing 17 changed files with 77 additions and 740 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net

name: .NET

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

jobs:
build:
permissions:
contents: write
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v0
with:
versionSpec: '5.x'
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Determine Version
id: gitversion # id to later be referenced
uses: gittools/actions/gitversion/execute@v0

- name: Restore dependencies
run: dotnet restore

- name: Build
run: dotnet build --no-restore --configuration Release --property:Version=${{ steps.gitversion.outputs.nuGetVersionV2 }}

- name: Test
run: dotnet test --no-build --configuration Release --verbosity normal

- name: Publish Package to Nuget
if: github.event_name != 'pull_request'
run: |
rm -rf nuget/
dotnet pack --no-build --configuration Release --property:Version=${{ steps.gitversion.outputs.nuGetVersionV2 }} --output nuget
dotnet nuget push nuget/*.nupkg -k '${{ secrets.NUGET_API_KEY }}' --skip-duplicate -s https://api.nuget.org/v3/index.json
- name: Create Release
if: github.event_name != 'pull_request'
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: v${{ steps.gitversion.outputs.nuGetVersionV2 }}
release_name: v${{ steps.gitversion.outputs.nuGetVersionV2 }}
body: |
Release ${{ steps.gitversion.outputs.nuGetVersionV2 }}
draft: false
prerelease: false
Binary file removed .nuke
Binary file not shown.
54 changes: 0 additions & 54 deletions Build.ps1

This file was deleted.

4 changes: 0 additions & 4 deletions DateTimeExtensions.sln
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{EB805547-455
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{0F8CA42F-760A-4A42-BD0F-0AC9900B6712}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = ".build", "build\.build.csproj", "{8BB0AD48-A370-405F-B295-03D7F1811375}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DateTimeExtensions", "src\DateTimeExtensions\DateTimeExtensions.csproj", "{650FA9EC-03BE-43AF-87FF-9632856E31EE}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DateTimeExtensions.Tests", "tests\DateTimeExtensions.Tests\DateTimeExtensions.Tests.csproj", "{2BB0401A-4DCA-4D59-B15D-6C895304D2AF}"
Expand All @@ -33,8 +31,6 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{8BB0AD48-A370-405F-B295-03D7F1811375}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8BB0AD48-A370-405F-B295-03D7F1811375}.Release|Any CPU.ActiveCfg = Release|Any CPU
{650FA9EC-03BE-43AF-87FF-9632856E31EE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{650FA9EC-03BE-43AF-87FF-9632856E31EE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{650FA9EC-03BE-43AF-87FF-9632856E31EE}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand Down
41 changes: 0 additions & 41 deletions appveyor.yml

This file was deleted.

54 changes: 0 additions & 54 deletions build.sh

This file was deleted.

18 changes: 0 additions & 18 deletions build/.build.csproj

This file was deleted.

52 changes: 0 additions & 52 deletions build/.build.csproj.dotsettings

This file was deleted.

76 changes: 0 additions & 76 deletions build/Build.cs

This file was deleted.

Loading

0 comments on commit 2eda0bb

Please sign in to comment.