Skip to content

Commit

Permalink
chore: Bumped to v1.3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
canta2899 committed Jun 3, 2022
1 parent 1df1728 commit c86d601
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 2 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: build-test

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
50 changes: 50 additions & 0 deletions .github/workflows/nuget-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: deploy

on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.100
- name: Set VERSION variable from tag
run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV
- name: Publish
run: |
cd Panini
dotnet pack /p:Version=${VERSION} --output .
dotnet nuget push ./Panini.${VERSION}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}
create-release:
name: Create Release
needs: publish
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
prerelease: false
1 change: 1 addition & 0 deletions Panini/IniFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public IniFile()

private ILookup<string, IniSection> UpdateLookup()
{
// Creates lookup
return sectionList.ToLookup(
iniSection => iniSection.Name,
iniSection => iniSection
Expand Down
4 changes: 2 additions & 2 deletions Panini/Panini.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package>
<metadata>
<id>Panini</id>
<version>1.3.1</version>
<version>1.3.5</version>
<title>Panini</title>
<authors>canta2899</authors>
<description>A simple library for INI file parsing</description>
Expand All @@ -17,6 +17,6 @@
<files>
<file src="./assets/icon.png" target="assets/" />
<file src="./assets/README.md" target="docs/" />
<file src="./bin/Release/netstandard2.0/Panini.dll" target="lib/netstandard2.0" />
<file src="./bin/Debug/netstandard2.0/Panini.dll" target="lib/netstandard2.0" />
</files>
</package>

0 comments on commit c86d601

Please sign in to comment.