Rewritten build and publish steps because github's nuget registry is not compatible with previous used action
This commit is contained in:
19
.github/workflows/publish-dev-packages.yml
vendored
19
.github/workflows/publish-dev-packages.yml
vendored
@@ -25,12 +25,15 @@ jobs:
|
|||||||
# Step 2: Checkout the code
|
# Step 2: Checkout the code
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
# Step 3: Build project
|
||||||
|
- name: "Build project"
|
||||||
|
run: dotnet build --configuration Debug ${{ matrix.project }}/${{ matrix.project }}.csproj
|
||||||
|
|
||||||
# Step 3: Run the publishing action
|
# Step 4: Pack project
|
||||||
- name: Publish on version change
|
- name: "Pack project"
|
||||||
uses: alirezanet/publish-nuget@v3.1.0
|
run: dotnet pack --configuration Debug --no-build --output . ${{ matrix.project }}/${{ matrix.project }}.csproj
|
||||||
with:
|
|
||||||
PROJECT_FILE_PATH: ${{ matrix.project }}/${{ matrix.project }}.csproj
|
# Step 5: Publish on package registry
|
||||||
TAG_COMMIT: false
|
- name: Publish on package registry"
|
||||||
NUGET_KEY: ${{secrets.GH_PACKAGES_READWRITE}}
|
run: dotnet nuget push "*.nupkg" --skip-duplicate --api-key ${{secrets.GH_PACKAGES_READWRITE}} --source https://nuget.pkg.github.com/Moonlight-Panel/index.json
|
||||||
NUGET_SOURCE: https://nuget.pkg.github.com/Moonlight-Panel/index.json
|
|
||||||
Reference in New Issue
Block a user