Skip to content

Commit

Permalink
Add README to the project and clean yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
aboimpinto committed Oct 26, 2023
1 parent f786402 commit c26746f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 19 deletions.
20 changes: 1 addition & 19 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,15 @@ on:
push:
tags:
- '**'

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: GitHub Tag Name example
run: |
echo "Tag name from GITHUB_REF_NAME: $GITHUB_REF_NAME"
echo "Tag name from github.ref_name: ${{ github.ref_name }}"
- uses: actions/checkout@v2

# - uses: nuget/setup-nuget@v1
# with:
# nuget-api-key: ${{ secrets.MATERIALDESIGN_AVALONIA_PACKICON_KEY }}
# nuget-version: '5.x'
# - run: nuget restore ./source/MaterialDesign.Avalonia.PackIcon/MaterialDesign.Avalonia.PackIcon.csproj



- name: Setup .NET Core
uses: actions/setup-dotnet@v2
with:
Expand All @@ -35,20 +22,15 @@ jobs:
run: dotnet pack -c Release
/p:Version=${{ github.ref_name }}
/p:PackageReleaseNotes="See https://github.com/AboimPinto/MaterialDesign.Avalonia/releases/tag/${{ github.ref_name }}"
# /p:Version=1.25.0
# /p:PackageReleaseNotes="See https://github.com/AboimPinto/MaterialDesign.Avalonia/releases/tag/1.25.0"

- name: Archive NuGet Package
uses: actions/upload-artifact@v3
with:
name: MaterialDesign.Avalonia.PackIcon
path: /home/runner/work/MaterialDesign.Avalonia/MaterialDesign.Avalonia/source/MaterialDesign.Avalonia.PackIcon/bin/Release/MaterialDesign.Avalonia.PackIcon.${{ github.ref_name }}.0.nupkg
# path: ./source/MaterialDesign.Avalonia.PackIcon/bin/Release/MaterialDesign.Avalonia.PackIcon.${{ github.ref_name }}.0.nupkg
# path: /home/runner/work/MaterialDesign.Avalonia/MaterialDesign.Avalonia/source/MaterialDesign.Avalonia.PackIcon/bin/Release/MaterialDesign.Avalonia.PackIcon.1.25.0.nupkg

- name: Publish Nuget Package
run: dotnet nuget push /home/runner/work/MaterialDesign.Avalonia/MaterialDesign.Avalonia/source/MaterialDesign.Avalonia.PackIcon/bin/Release/MaterialDesign.Avalonia.PackIcon.${{ github.ref_name }}.0.nupkg
--api-key ${{ secrets.MATERIALDESIGN_AVALONIA_PACKICON_KEY }}
--source https://api.nuget.org/v3/index.json
--no-symbols true
# run: dotnet nuget push /home/runner/work/MaterialDesign.Avalonia/MaterialDesign.Avalonia/source/MaterialDesign.Avalonia.PackIcon/bin/Release/MaterialDesign.Avalonia.PackIcon.1.25.0.nupkg
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,8 @@

<AvaloniaResource Include="Assets/*" />
</ItemGroup>

<ItemGroup>
<None Include="../README.md" Pack="true" PackagePath="\"/>
</ItemGroup>
</Project>

0 comments on commit c26746f

Please sign in to comment.