Skip to content

Commit d0ea98f

Browse files
committed
update release scripting
1 parent d138f6d commit d0ea98f

2 files changed

Lines changed: 36 additions & 1 deletion

File tree

.github/workflows/Release.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: FileSystem [Release]
2+
3+
env:
4+
DOTNET_VERSION: 7.0.x
5+
DOTNET_BUILD_CONFIGURATION: Release
6+
DOTNET_PACKAGES_OUTPUT_DIRECTORY: .nuget
7+
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
8+
9+
on:
10+
push:
11+
tags:
12+
- "[0-9]+.[0-9]+.[0-9]+"
13+
- "[0-9]+.[0-9]+.[0-9]+-alpha[0-9]+"
14+
- "[0-9]+.[0-9]+.[0-9]+-beta[0-9]+"
15+
16+
jobs:
17+
build:
18+
runs-on: windows-latest
19+
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v3
23+
with:
24+
fetch-depth: 0
25+
26+
- name: Setup .NET
27+
uses: actions/setup-dotnet@v3
28+
with:
29+
dotnet-version: ${{ env.DOTNET_VERSION }}
30+
31+
- name: Pack packages
32+
run: dotnet pack --configuration ${{ env.DOTNET_BUILD_CONFIGURATION }} --output "${{ env.DOTNET_PACKAGES_OUTPUT_DIRECTORY }}"
33+
34+
- name: Push packages
35+
run: dotnet nuget push "${{ env.DOTNET_PACKAGES_OUTPUT_DIRECTORY }}/*.nupkg" --api-key ${{ env.NUGET_API_KEY }}

scripts/publish.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$outputPath = "NuGet"
1+
$outputPath = ".nuget"
22

33
New-Item -ItemType Directory -Force $outputPath
44

0 commit comments

Comments
 (0)