-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (43 loc) · 1.27 KB
/
publish.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Package Distribution
on:
push:
tags:
- v*
jobs:
build:
name: Publish packages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET 9
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.*
- name: Publish to NuGet with Nuke
run: ./build.sh push --nuget-api-key ${{ secrets.NUGET_API_KEY }}
shell: bash
create-issue:
needs: build
name: Create issue in template repo
runs-on: ubuntu-latest
steps:
- name: Set tag
id: vars
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
- name: Post Issue
uses: maxkomarychev/oction-create-issue@v0.7.1
id: create_issue
with:
token: ${{ secrets.TAMPLATE_REPO_TOKEN }}
owner: Intility
repo: templates
title: Intility.Logging packages update to ${{ steps.vars.outputs.tag }}
body: Package references in the dotnet templates should be updated to the latest version (${{ steps.vars.outputs.tag }})
assignees: emilkje
labels: dotnet
- name: Print outputs
run: |
echo ${{ steps.create_issue.outputs.id }}
echo ${{ steps.create_issue.outputs.number }}