-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (28 loc) · 878 Bytes
/
Copy pathpublish.yml
File metadata and controls
28 lines (28 loc) · 878 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 new version
on:
push:
tags:
- 'v*'
jobs:
Publish:
env:
VERSION: ${{ github.event.inputs.version }}
DESCRIPTION: Bitbucket API 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 .\BitbucketCLI.psd1
-ModuleVersion '${GITHUB_REF#refs/tags/v}'
-Author '${GITHUB_WORKSPACE}'
-Description '${DESCRIPTION}'
-FunctionsToExport '*'
-RootModule 'BitbucketCLI.psm1'"
- name: Publish
run: pwsh -Command 'Publish-Module -Path . -NuGetApiKey ${{ secrets.NuGetApiKey }}'