-
Notifications
You must be signed in to change notification settings - Fork 4
40 lines (40 loc) · 1.23 KB
/
TestRelease.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
32
33
34
35
36
37
38
39
40
name: Test Release
on:
push:
branches:
- main
workflow_dispatch:
jobs:
Release:
runs-on: ubuntu-latest
defaults:
run:
shell: pwsh
steps:
- name: Set Variables
run: |
"LOWERCASE_REPOSITORY=$($env:GITHUB_REPOSITORY.ToLower())" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install GitVersion
uses: gittools/actions/gitversion/[email protected]
with:
versionSpec: '5.x'
- name: Determine Version
id: gitversion
uses: gittools/actions/gitversion/[email protected]
- name: Update PowerShell Metadata
uses: natescherer/update-powershell-metadata-action@v2
with:
path: src
version: ${{ steps.gitversion.outputs.NuGetVersionV2 }}
copyright: (c) YYYY Nate Scherer. All rights reserved.
- name: Publish Module to Cloudsmith
uses: natescherer/publish-powershell-action@v1
with:
token: ${{ secrets.CLOUDSMITH_KEY }}
target: nuget
nugetUrl: https://nuget.cloudsmith.io/${{ env.LOWERCASE_REPOSITORY }}/v3/index.json
path: src