Skip to content

Init commit

Init commit #1

Workflow file for this run

name: Build & Publish
on:
push:
branches:
- master
tags:
- "*.*.*"
workflow_dispatch:
env:
VERSION: ${{ github.ref_name }}
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 9.0.x
- name: Build
run: |
dotnet build -c Release src/Lucide.Avalonia/Lucide.Avalonia.csproj -p:Version=${{ env.VERSION }}
- name: Pack
run: |
dotnet pack -c Release -o . src/Lucide.Avalonia/Lucide.Avalonia.csproj -p:Version=${{ env.VERSION }}
- name: Publish
run: dotnet nuget push *.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: >
gh release create ${{ env.VERSION }}
--repo ${{ github.event.repository.full_name }}
--title ${{ env.VERSION }}
--generate-notes
--verify-tag