Skip to content

Commit c45c22e

Browse files
committed
Init commit
0 parents  commit c45c22e

38 files changed

+15518
-0
lines changed

.github/workflows/publish.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Build & Publish
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
tags:
8+
- "*.*.*"
9+
workflow_dispatch:
10+
11+
env:
12+
VERSION: ${{ github.ref_name }}
13+
14+
jobs:
15+
publish:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v3
21+
22+
- name: Setup .NET
23+
uses: actions/setup-dotnet@v3
24+
with:
25+
dotnet-version: 9.0.x
26+
27+
- name: Build
28+
run: |
29+
dotnet build -c Release src/Lucide.Avalonia/Lucide.Avalonia.csproj -p:Version=${{ env.VERSION }}
30+
31+
- name: Pack
32+
run: |
33+
dotnet pack -c Release -o . src/Lucide.Avalonia/Lucide.Avalonia.csproj -p:Version=${{ env.VERSION }}
34+
35+
- name: Publish
36+
run: dotnet nuget push *.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
37+
38+
- name: Create Release
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
run: >
42+
gh release create ${{ env.VERSION }}
43+
--repo ${{ github.event.repository.full_name }}
44+
--title ${{ env.VERSION }}
45+
--generate-notes
46+
--verify-tag

0 commit comments

Comments
 (0)