Skip to content

Commit

Permalink
Update publish.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
NostraThomas99 authored Apr 7, 2024
1 parent 1d8444a commit a90ff83
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ jobs:
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: |
Expand All @@ -24,9 +30,6 @@ jobs:
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x

- name: Authenticate with NuGet
run: dotnet nuget add source https://api.nuget.org/v3/index.json -n nuget.org -u username -p ${{ secrets.NUGET_API_KEY }} --store-password-in-clear-text

- name: Download Dalamud Latest
run: |
Expand All @@ -36,12 +39,17 @@ jobs:
- name: Restore Nuget Packages
run: dotnet restore RotationSolver/RotationSolver.csproj

- name: Publish NuGet
uses: brandedoutcast/publish-nuget@v2
with:
PROJECT_FILE_PATH: RotationSolver.Basic/Rotationsolver.Basic.csproj
VERSION_STATIC: ${{ env.tag }}
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}
INCLUDE_SYMBOLS: true

- 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: Publish RS.Basic Nuget
run: dotnet nuget push .\build\RotationSolver.Basic.*.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

Expand Down

0 comments on commit a90ff83

Please sign in to comment.