Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
leandrocgsi committed Feb 10, 2024
2 parents b476c59 + b5f86f8 commit 97ab85a
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/continuous-integration-nuget.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: .NET 8 Continuous Integration with GitHub, GitHub Actions and Nuget Packages

on:
push:
branches: main

jobs:
build:

runs-on: ubuntu-latest

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

- name: Restore dependencies
run: dotnet restore

- name: Build
run: dotnet build --no-restore

- name: Move to folder
run: cd ./Tapioca.HATEOAS/

- name: Generate Release
run: dotnet build -c release

- name: Generate Package
run: dotnet pack -c release -o ./dist/

- name: Publish Package
run: dotnet nuget push "./dist/*" -k ${{ secrets.NUGET_API_KEY }} -s "https://api.nuget.org/v3/index.json"

0 comments on commit 97ab85a

Please sign in to comment.