Skip to content

refactor workflows

refactor workflows #4

Workflow file for this run

name: CI
on:
push:
branches:
- "main"
tags:
- "v*"
jobs:
build:
name: CI Build
uses: ./.github/workflows/build.yml
secrets: inherit
github:
name: Deploy to GitHub
needs: [build]
runs-on: ubuntu-24.04
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: nupkgs
- name: Push to pkg.github.com
run: dotnet nuget push "**/*.nupkg" -s https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json -k ${{ secrets.GH_FULL_PAT }} --skip-duplicate
nuget:
name: Deploy to NuGet
needs: [build]
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-24.04
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: nupkgs
- name: Push to nuget.org
run: dotnet nuget push "**/*.nupkg" -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_DEPLOY_KEY }}