Skip to content

Commit

Permalink
New nuget workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nt153133 committed Sep 17, 2024
1 parent 5014d96 commit a2a71d5
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 7 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release.yml
on:
release:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Install dependencies
run: dotnet restore
- name: Get Current Date Time
id: t1
uses: Kaven-Universe/github-action-current-date-time@v1
with:
format: "YYYY_MM_DD HH_mm_ss_SSS"
- name: Calculate Version
run: |
let "MINOR = ${{ steps.t1.outputs.month }} * 100 + ${{ steps.t1.outputs.day }}"
let "REVISION = ${{ steps.t1.outputs.seconds }}"
let "BUILD = ${{ steps.t1.outputs.hours }} * 100 + ${{ steps.t1.outputs.minutes }}"
let "MAJOR = ${{ steps.t1.outputs.year }} - 2000"
echo "$MAJOR.$MINOR.$BUILD.$REVISION"
echo "VERSION=$MAJOR.$MINOR.$BUILD.$REVISION" >> $GITHUB_ENV
- name: Create Nuget Package
run: dotnet pack -c Release -p:Version=$VERSION --output nupkgs
- name: Push nuget
run: dotnet nuget push nupkgs/*.nupkg -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json
env:
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_TOKEN }}
16 changes: 15 additions & 1 deletion LlamaLibrary.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,26 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>10</LangVersion>
<Nullable>enable</Nullable>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<UseWindowsForms>true</UseWindowsForms>
<UseWPF>true</UseWPF>
<ImportWindowsDesktopTargets>true</ImportWindowsDesktopTargets>
<TargetFrameworks>net48;net8.0-windows</TargetFrameworks>
<GenerateResourceUsePreserializedResources>true</GenerateResourceUsePreserializedResources>
<Configurations>Debug;Release;Release2</Configurations>
<EnableWindowsTargetingPack>true</EnableWindowsTargetingPack>
<EnableWindowsTargeting>true</EnableWindowsTargeting>
<ImplicitUsings>disable</ImplicitUsings>
</PropertyGroup>
<PropertyGroup>
<PackageId>LlamaLibrary</PackageId>
<Authors>nt153133</Authors>
<Product>LlamaLibrary</Product>
<Title>LlamaLibrary</Title>
<RepositoryUrl>https://github.com/nt153133/__LlamaLibrary.git</RepositoryUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RequireLicenseAcceptance>false</RequireLicenseAcceptance>
<PackageReadmeFile>Readme.md</PackageReadmeFile>
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<OutputPath>bin\x64\Release\</OutputPath>
Expand Down Expand Up @@ -49,6 +62,7 @@
<Content Include="Resources\Recipes_Anden.json" />
<Content Include="Resources\Shirogane.json" />
<Content Include="Resources\Ventures.json" />
<None Include="Readme.md" Pack="true" PackagePath="\"/>
</ItemGroup>

<ItemGroup>
Expand Down
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<a class="bmc-button" target="_blank" href="https://www.buymeacoffee.com/soACz8y"><img src="https://cdn.buymeacoffee.com/buttons/bmc-new-btn-logo.svg" alt="Buy me a coffee"><span style="margin-left:5px;font-size:28px !important;">Buy me a coffee</span></a>

# __LlamaLibrary
A robust library of functions for RebornBuddy botbases/plugins for FFXIV

## Installation

### Automatic Setup

The easiest way to install LlamaLibrary is to install the [updateBuddy](https://loader.updatebuddy.net/UpdateBuddy.zip) plugin. It would be installed in the **/plugins** folder of your rebornBuddy folder as such:
The easiest way to install LlamaLibrary is to install the [updateBuddy](https://loader.updatebuddy.net/UpdateBuddy.zip) plugin. It would be installed in the **/plugins** folder of your RebornBuddy folder as such:
```
RebornBuddy
└── Plugins
Expand All @@ -22,15 +20,15 @@ It will automatically install the files into the correct folders and keep them u

### Manual Setup

For those of you that don't want to use [updateBuddy](https://loader.updatebuddy.net/UpdateBuddy.zip) here's the manual installtion method.
For those of you that don't want to use [updateBuddy](https://loader.updatebuddy.net/UpdateBuddy.zip) here's the manual installation method.

First off, make sure you remove any previous versions of LlamaLibrary you may have in the **/BotBases** folder.

Download the zip from [__LlamaLibrary](https://github.com/nt153133/__LlamaLibrary) and create a folder in **/QuestBehaviors** called **__LlamaLibrary**(Two underscores) and either unzip the contents of the zip into that folder, or check out using a SVN client to that folder.

Download the zip from [LlamaUtilities](https://github.com/nt153133/LlamaUtilities) and create a folder in **/BotBases** called **LlamaUtilities** and either unzip the contents of the zip into that folder, or check out using a SVN client to that folder.

(Optional)
(Optional)
Download the zip from [ExtraBotbases](https://github.com/nt153133/ExtraBotbases) and create a folder in **/BotBases** called **ExtraBotbases** and either unzip the contents of the zip into that folder, or check out using a SVN client to that folder. These are a few extra botbases that most users will not use.

After Install your folder structure should look something like this.
Expand All @@ -44,4 +42,4 @@ RebornBuddy
```

## Contents
For a discription of what's all included with LlamaLibrary, check out the [wiki](https://github.com/nt153133/__LlamaLibrary/wiki)!
For a description of what's all included with LlamaLibrary, check out the [wiki](https://github.com/nt153133/__LlamaLibrary/wiki)!

0 comments on commit a2a71d5

Please sign in to comment.