Skip to content

Commit

Permalink
Update and rename dotnet-desktop.yml to nuget_push.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
danielathome19 authored Jan 1, 2024
1 parent 8c6a94f commit 5d232ed
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 116 deletions.
116 changes: 0 additions & 116 deletions .github/workflows/dotnet-desktop.yml

This file was deleted.

37 changes: 37 additions & 0 deletions .github/workflows/nuget_push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI/CT/CD

on:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

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

- name: Copy README to project directory
run: cp README.md "Chunk List/"

- name: Restore dependencies
run: dotnet restore

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

- name: Run Unit Tests
run: dotnet test --no-restore --verbosity normal

- name: Pack
run: dotnet pack --configuration Release --no-build -o out

- name: Push to NuGet
run: dotnet nuget push out/*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate

0 comments on commit 5d232ed

Please # to comment.