Skip to content

Commit

Permalink
build(ci): cleaned up some things
Browse files Browse the repository at this point in the history
  • Loading branch information
ArachisH committed Mar 17, 2024
1 parent 08d7f1d commit b5feb77
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,13 @@ jobs:
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v3
name: Git Checkout
- name: Git Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-dotnet@v3
id: dotnetstep
name: .NET Setup
- name: .NET Setup
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x

Expand All @@ -33,13 +32,13 @@ jobs:
uses: gittools/actions/gitversion/execute@v0

- name: Restoring
run: dotnet restore --verbosity normal
run: dotnet restore -v normal

- name: Building
run: dotnet build --configuration Release --no-restore --verbosity normal
run: dotnet build -c Release --no-restore -v normal

- name: Testing (.NET 5)
run: dotnet test --configuration Release --no-restore --no-build -v n -f net5.0
run: dotnet test -c Release --no-restore --no-build -v normal -f net5.0

- name: Testing (.NET Core 2)
run: dotnet test --configuration Release --no-restore --no-build -v n -f netcoreapp2.0
run: dotnet test -c Release --no-restore --no-build -v normal -f netcoreapp2.0
25 changes: 13 additions & 12 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,47 +4,48 @@ on:
push:
tags:
- 'v*'

env:
PACKAGE_OUTPUT: ${{ github.workspace }}/package

jobs:

deploy:
runs-on: ubuntu-latest
environment: Production

steps:
- name: Git Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: .NET Setup
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
dotnet-version: 8.0.x

- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v0
with:
versionSpec: '6.x'
includePrerelease: true
versionSpec: '5.x'

- name: Determine Version
uses: gittools/actions/gitversion/execute@v0

- name: Restoring
run: dotnet restore --verbosity normal
run: dotnet restore -v normal

- name: Building
run: dotnet build --configuration Release --no-restore --verbosity normal
run: dotnet build -c Release --no-restore -v normal

- name: Testing (.NET 5)
run: dotnet test -c Release --no-restore --no-build -v normal -f net5.0

- name: Testing
run: dotnet test --configuration Release --no-restore --no-build --verbosity normal
- name: Testing (.NET Core 2)
run: dotnet test -c Release --no-restore --no-build -v normal -f netcoreapp2.0

- name: Packing (w/ Symbols)
run: dotnet pack --configuration Release --no-restore --no-build --verbosity normal --output ${{ env.PACKAGE_OUTPUT }} -p:Version=${{ env.GitVersion_SemVer }} -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg
run: dotnet pack -c Release --no-restore --no-build -v normal -o ${{ env.PACKAGE_OUTPUT }} -p:Version=${{ env.GitVersion_SemVer }} -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg

- name: Pushing
run: dotnet nuget push ${{ env.PACKAGE_OUTPUT }}/*.nupkg -k ${{ secrets.REPOSITORY_KEY }} -s ${{ secrets.REPOSITORY_SOURCE }}

0 comments on commit b5feb77

Please sign in to comment.