-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (28 loc) · 889 Bytes
/
publish.yml
File metadata and controls
28 lines (28 loc) · 889 Bytes
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
name: Publish
on:
workflow_dispatch:
push:
branches:
- 'master'
jobs:
Publish:
env:
DESCRIPTION: ProcessTuner Command Line Interface
runs-on: ubuntu-latest
container: mcr.microsoft.com/dotnet/sdk:5.0-alpine
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Tests
run: pwsh -File ./Run-Tests.ps1
- name: Versioning
run: >
pwsh -Command "New-ModuleManifest
-Path ./ProcessTuner.psd1
-ModuleVersion '1.0.${{ github.run_number }}'
-Author '${GITHUB_WORKSPACE}'
-Description '${DESCRIPTION}'
-FunctionsToExport '*'
-RootModule 'ProcessTuner.psm1'"
- name: Publish
run: pwsh -Command 'Move-Item * ProcessTuner/; Publish-Module -Path ProcessTuner/ -NuGetApiKey ${{ secrets.NuGetApiKey }}'