Skip to content

Commit

Permalink
Fix workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Critical-Impact committed Oct 21, 2024
1 parent 0ebaa87 commit 749090e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Download Dalamud
run: |
mkdir -p ${{ env.DALAMUD_HOME }}
curl -L https://goatcorp.github.io/dalamud-distrib/latest.zip -o latest.zip
curl -L https://goatcorp.github.io/dalamud-distrib/api11/latest.zip -o latest.zip
unzip latest.zip -d ${{ env.DALAMUD_HOME }}
# Install the .NET SDK indicated in the global.json file
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
push:
tags:
- '*.*.*'
-
-
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_NOLOGO: true
Expand All @@ -13,7 +13,7 @@ env:
defaults:
run:
shell: pwsh

jobs:
create_nuget:
runs-on: ubuntu-latest
Expand All @@ -25,18 +25,18 @@ jobs:
- name: Download Dalamud
run: |
mkdir -p ${{ env.DALAMUD_HOME }}
curl -L https://goatcorp.github.io/dalamud-distrib/latest.zip -o latest.zip
curl -L https://goatcorp.github.io/dalamud-distrib/api11/latest.zip -o latest.zip
unzip latest.zip -d ${{ env.DALAMUD_HOME }}
# Install the .NET SDK indicated in the global.json file
- name: Setup .NET
uses: actions/setup-dotnet@v4

# Create the NuGet package in the folder from the environment variable NuGetDirectory
- run: |
$env:DALAMUD_HOME = "${{ env.DALAMUD_HOME }}"
dotnet pack --configuration Release --output ${{ env.NuGetDirectory }}
# Publish the NuGet package as an artifact, so they can be used in the following jobs
- uses: actions/upload-artifact@v3
with:
Expand All @@ -53,7 +53,7 @@ jobs:
- name: Run tests
run: |
$env:DALAMUD_HOME = "${{ env.DALAMUD_HOME }}"
dotnet test --configuration Release
dotnet test --configuration Release
release:
name: Create release
needs: [ create_nuget, run_test ]
Expand Down Expand Up @@ -91,4 +91,4 @@ jobs:
run: |
foreach($file in (Get-ChildItem "${{ env.NuGetDirectory }}" -Recurse -Include *.nupkg)) {
dotnet nuget push $file --api-key "${{ secrets.NUGET_APIKEY }}" --source https://api.nuget.org/v3/index.json --skip-duplicate
}
}

0 comments on commit 749090e

Please sign in to comment.