-
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (29 loc) · 871 Bytes
/
release.yml
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
name: Release
on:
push:
tags: ['v*']
jobs:
publish:
name: Publish Module
runs-on: ubuntu-latest
environment: release
env:
DOTNET_NOLOGO: true
steps:
- name: Checkout Repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Setup .NET Core
uses: actions/setup-dotnet@3951f0dfe7a07e2313ec93c75700083e2005cbab # v4
with:
dotnet-version: '6.x'
- name: Build Package
id: pack
run: dotnet pack --nologo --configuration release
- name: Publish Package
run: >-
dotnet nuget push
--force-english-output
--skip-duplicate --api-key ${{secrets.POWERSHELL_GALLERY_TOKEN}}
--source https://www.powershellgallery.com
--timeout 60
${{ steps.pack.outputs.package-filepath }}