Skip to content

Commit 69319c5

Browse files
authored
Merge pull request #15 from NeverMorewd/chore/rc-prep
chore: RC prep - simplify README and remove stale azure-pipelines file
2 parents 53cdafb + 578be12 commit 69319c5

File tree

6 files changed

+192
-244
lines changed

6 files changed

+192
-244
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Publish Preview NuGet
2+
3+
on:
4+
push:
5+
branches:
6+
- 'fix/**'
7+
- 'feat/**'
8+
- 'preview/**'
9+
10+
jobs:
11+
publish-preview:
12+
name: Pack & Push to GitHub Packages
13+
runs-on: ubuntu-latest
14+
permissions:
15+
packages: write
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
21+
- name: Setup .NET 10
22+
uses: actions/setup-dotnet@v4
23+
with:
24+
dotnet-version: '10.x'
25+
26+
- name: Resolve preview version
27+
id: version
28+
run: |
29+
BASE=$(grep -oP '(?<=<Version>)[^<]+' src/Pipboy.Avalonia/Pipboy.Avalonia.csproj)
30+
VERSION="${BASE}-preview.${{ github.run_number }}"
31+
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
32+
echo "Preview version: $VERSION"
33+
34+
- name: Restore
35+
run: dotnet restore src/Pipboy.Avalonia/Pipboy.Avalonia.csproj
36+
37+
- name: Pack
38+
run: |
39+
dotnet pack src/Pipboy.Avalonia/Pipboy.Avalonia.csproj \
40+
--no-restore \
41+
--configuration Release \
42+
-p:Version=${{ steps.version.outputs.version }} \
43+
--output ./nupkg
44+
45+
- name: List produced packages
46+
run: ls -lh ./nupkg/
47+
48+
- name: Push to GitHub Packages
49+
run: |
50+
dotnet nuget push ./nupkg/*.nupkg \
51+
--api-key "${{ secrets.GITHUB_TOKEN }}" \
52+
--source "https://nuget.pkg.github.com/NeverMorewd/index.json" \
53+
--skip-duplicate

0 commit comments

Comments
 (0)