Update publish-package workflow (#4034)

This commit is contained in:
Utkarsh Umesan Pillai 2022-12-20 15:25:58 -08:00 committed by GitHub
parent a6fef76223
commit 78aa8ad466
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 17 deletions

View File

@ -5,37 +5,28 @@
################### IMPORTANT ###################
#################################################
name: Pack and publish to Myget
name: Pack and publish to MyGet
on:
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
release:
types: [published]
schedule:
- cron: '0 0 * * *' # once in a day at 00:00
jobs:
build-pack:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest]
branches: [main-1.3.1]
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # fetching all
ref: ${{ matrix.branches }}
ref: ${{ github.ref || 'main' }}
- uses: actions/setup-dotnet@v2
- name: Setup .NET 7.0
uses: actions/setup-dotnet@v3.0.3
with:
dotnet-version: '7.0.x'
include-prerelease: true
- name: Install dependencies
run: dotnet restore
@ -49,7 +40,7 @@ jobs:
- name: Publish Artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.os }}-packages
name: ${{ github.ref_name }}-packages
path: '**/bin/**/*.*nupkg'
- name: Publish MyGet