Skip to content

Merge pull request #406 from FFXIV-CombatReborn/crashfixes #254

Merge pull request #406 from FFXIV-CombatReborn/crashfixes

Merge pull request #406 from FFXIV-CombatReborn/crashfixes #254

Workflow file for this run

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: Setup NuGet.exe for use with actions
uses: NuGet/setup-nuget@v2
with:
nuget-api-key: ${{ secrets.NUGET_API_KEY }}
- 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@v4
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 -DestinationPath "$env:AppData\XIVLauncher\addon\Hooks\dev"
- name: Restore Nuget Packages
run: dotnet restore RotationSolver/RotationSolver.csproj
- name: Build Plugin
run: dotnet build --no-restore -c Release RotationSolver/RotationSolver.csproj -p:AssemblyVersion=${{ env.tag }} -p:FileVersion=${{ env.tag }} -p:PackageVersion=${{ env.tag }} -p:InformationalVersion=${{ env.tag }} --output .\build
- name: Push Nuget Package
run: dotnet nuget push .\build\*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
- name: Zip Plugin
run: Compress-Archive -Path .\build\* -DestinationPath .\build\RotationSolver.zip
- name: Publish Plugin
uses: softprops/action-gh-release@v2
with:
files: ./build/RotationSolver.zip
token: ${{ secrets.GITHUB_TOKEN }}