Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

Commit

Permalink
Merge pull request #24 from FFXIV-CombatReborn/publish-workflow
Browse files Browse the repository at this point in the history
Added workflow and removed nuget
  • Loading branch information
NostraThomas99 authored Apr 6, 2024
2 parents 6aedb2f + ee08549 commit 484b55a
Show file tree
Hide file tree
Showing 5 changed files with 99 additions and 1 deletion.
44 changes: 44 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Publish
on:
push:
tags:
- '*.*.*.*'
jobs:
Build:
permissions:
contents: write
runs-on: windows-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: true

- name: Get Environment Variables
run: |
$tag = "${{ github.ref }}" -replace 'refs/tags/', ''
"tag=$tag" | Out-File -Append -FilePath $Env:GITHUB_ENV
- name: Set up .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x

- name: Download Dalamud Latest
run: |
Invoke-WebRequest -Uri https://goatcorp.github.io/dalamud-distrib/latest.zip -OutFile latest.zip
Expand-Archive -Force latest.zip "$env:AppData\XIVLauncher\addon\Hooks\dev"
- name: Restore Nuget Packages
run: dotnet restore BasicRotations/DefaultRotations.csproj

- name: Build Rotations
run: dotnet build --no-restore -c Release BasicRotations/DefaultRotations.csproj -p:AssemblyVersion=${{ env.tag }} -p:FileVersion=${{ env.tag }} -p:InformationalVersion=${{ env.tag }} --output .\build

- name: Publish Rotations
uses: softprops/action-gh-release@v2
with:
files: ./build/DefaultRotations.dll
token: ${{ secrets.GITHUB_TOKEN }}

3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "RotationSolver"]
path = RotationSolver
url = https://github.com/FFXIV-CombatReborn/RotationSolverReborn
[submodule "RotationSolverReborn"]
path = RotationSolverReborn
url = https://github.com/FFXIV-CombatReborn/RotationSolverReborn
50 changes: 50 additions & 0 deletions BasicRotations.sln
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
README.md = README.md
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RotationSolver.Basic", "RotationSolverReborn\RotationSolver.Basic\RotationSolver.Basic.csproj", "{32959949-3E63-4A42-AEAB-C82592DD3D6A}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "XIVPainter", "RotationSolverReborn\XIVPainter\XIVPainter\XIVPainter.csproj", "{5747D20D-AA5E-4530-AC24-01B98E2553D0}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ECommons", "RotationSolverReborn\ECommons\ECommons\ECommons.csproj", "{3609A65E-447C-41D8-99EF-8A6550614C23}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RotationSolver.SourceGenerators", "RotationSolverReborn\RotationSolver.SourceGenerators\RotationSolver.SourceGenerators.csproj", "{B55978DC-39A7-4679-A7C0-5ECB8D45BD95}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RotationSolver.GameData", "RotationSolverReborn\RotationSolver.GameData\RotationSolver.GameData.csproj", "{A4FAC4C5-63AB-41A1-BC10-1C8CE132AD28}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -28,6 +38,46 @@ Global
{00DD640B-5207-40FB-A99B-8625E6B218C3}.Release|Any CPU.Build.0 = Release|Any CPU
{00DD640B-5207-40FB-A99B-8625E6B218C3}.Release|x64.ActiveCfg = Release|x64
{00DD640B-5207-40FB-A99B-8625E6B218C3}.Release|x64.Build.0 = Release|x64
{32959949-3E63-4A42-AEAB-C82592DD3D6A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{32959949-3E63-4A42-AEAB-C82592DD3D6A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{32959949-3E63-4A42-AEAB-C82592DD3D6A}.Debug|x64.ActiveCfg = Debug|Any CPU
{32959949-3E63-4A42-AEAB-C82592DD3D6A}.Debug|x64.Build.0 = Debug|Any CPU
{32959949-3E63-4A42-AEAB-C82592DD3D6A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{32959949-3E63-4A42-AEAB-C82592DD3D6A}.Release|Any CPU.Build.0 = Release|Any CPU
{32959949-3E63-4A42-AEAB-C82592DD3D6A}.Release|x64.ActiveCfg = Release|Any CPU
{32959949-3E63-4A42-AEAB-C82592DD3D6A}.Release|x64.Build.0 = Release|Any CPU
{5747D20D-AA5E-4530-AC24-01B98E2553D0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5747D20D-AA5E-4530-AC24-01B98E2553D0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5747D20D-AA5E-4530-AC24-01B98E2553D0}.Debug|x64.ActiveCfg = Debug|Any CPU
{5747D20D-AA5E-4530-AC24-01B98E2553D0}.Debug|x64.Build.0 = Debug|Any CPU
{5747D20D-AA5E-4530-AC24-01B98E2553D0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5747D20D-AA5E-4530-AC24-01B98E2553D0}.Release|Any CPU.Build.0 = Release|Any CPU
{5747D20D-AA5E-4530-AC24-01B98E2553D0}.Release|x64.ActiveCfg = Release|Any CPU
{5747D20D-AA5E-4530-AC24-01B98E2553D0}.Release|x64.Build.0 = Release|Any CPU
{3609A65E-447C-41D8-99EF-8A6550614C23}.Debug|Any CPU.ActiveCfg = Debug|x64
{3609A65E-447C-41D8-99EF-8A6550614C23}.Debug|Any CPU.Build.0 = Debug|x64
{3609A65E-447C-41D8-99EF-8A6550614C23}.Debug|x64.ActiveCfg = Debug|x64
{3609A65E-447C-41D8-99EF-8A6550614C23}.Debug|x64.Build.0 = Debug|x64
{3609A65E-447C-41D8-99EF-8A6550614C23}.Release|Any CPU.ActiveCfg = Release|x64
{3609A65E-447C-41D8-99EF-8A6550614C23}.Release|Any CPU.Build.0 = Release|x64
{3609A65E-447C-41D8-99EF-8A6550614C23}.Release|x64.ActiveCfg = Release|x64
{3609A65E-447C-41D8-99EF-8A6550614C23}.Release|x64.Build.0 = Release|x64
{B55978DC-39A7-4679-A7C0-5ECB8D45BD95}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B55978DC-39A7-4679-A7C0-5ECB8D45BD95}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B55978DC-39A7-4679-A7C0-5ECB8D45BD95}.Debug|x64.ActiveCfg = Debug|Any CPU
{B55978DC-39A7-4679-A7C0-5ECB8D45BD95}.Debug|x64.Build.0 = Debug|Any CPU
{B55978DC-39A7-4679-A7C0-5ECB8D45BD95}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B55978DC-39A7-4679-A7C0-5ECB8D45BD95}.Release|Any CPU.Build.0 = Release|Any CPU
{B55978DC-39A7-4679-A7C0-5ECB8D45BD95}.Release|x64.ActiveCfg = Release|Any CPU
{B55978DC-39A7-4679-A7C0-5ECB8D45BD95}.Release|x64.Build.0 = Release|Any CPU
{A4FAC4C5-63AB-41A1-BC10-1C8CE132AD28}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A4FAC4C5-63AB-41A1-BC10-1C8CE132AD28}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A4FAC4C5-63AB-41A1-BC10-1C8CE132AD28}.Debug|x64.ActiveCfg = Debug|Any CPU
{A4FAC4C5-63AB-41A1-BC10-1C8CE132AD28}.Debug|x64.Build.0 = Debug|Any CPU
{A4FAC4C5-63AB-41A1-BC10-1C8CE132AD28}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A4FAC4C5-63AB-41A1-BC10-1C8CE132AD28}.Release|Any CPU.Build.0 = Release|Any CPU
{A4FAC4C5-63AB-41A1-BC10-1C8CE132AD28}.Release|x64.ActiveCfg = Release|Any CPU
{A4FAC4C5-63AB-41A1-BC10-1C8CE132AD28}.Release|x64.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
2 changes: 1 addition & 1 deletion BasicRotations/DefaultRotations.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<DalamudLibPath>$(AppData)\XIVLauncher\addon\Hooks\dev\</DalamudLibPath>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="RotationSolver.Basic" Version="4.2.3.1" />
<ProjectReference Include="..\RotationSolverReborn\RotationSolver.Basic\RotationSolver.Basic.csproj" />
</ItemGroup>
<ItemGroup>
<Reference Include="Dalamud">
Expand Down
1 change: 1 addition & 0 deletions RotationSolverReborn
Submodule RotationSolverReborn added at 7f50cc

0 comments on commit 484b55a

Please sign in to comment.