Skip to content

Commit

Permalink
Trigger pack and publish when release is created
Browse files Browse the repository at this point in the history
  • Loading branch information
alanwest committed Sep 7, 2022
1 parent 5208ec0 commit 6dc9273
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions .github/workflows/publish-packages-1.0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,23 @@
################### 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]
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
with:
Expand All @@ -49,7 +40,7 @@ jobs:
- name: Publish Artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.os }}-packages
name: ${{ github.ref || 'main' }}-packages
path: '**/bin/**/*.*nupkg'

- name: Publish MyGet
Expand Down

0 comments on commit 6dc9273

Please sign in to comment.