Skip to content

Commit

Permalink
remove nupkg upload / publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
Lordfirespeed committed Feb 15, 2024
1 parent fa787c5 commit d2af2e3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 35 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,3 @@ jobs:
with:
name: build-artifacts
path: ./*/dist/*.zip

- name: Upload nupkg artifact
uses: actions/upload-artifact@v4
with:
name: nupkg-build
path: ./*/bin/Release/*.nupkg
30 changes: 1 addition & 29 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ jobs:
name: thunderstore-build
path: ./*/dist/*.zip

- name: Upload nupkg artifact
uses: actions/upload-artifact@v4
with:
name: nupkg-build
path: ./*/bin/Release/*.nupkg

upload-release-artifacts:
name: Upload Release Artifacts
needs: build
Expand All @@ -61,29 +55,7 @@ jobs:
- name: Upload artifacts to Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload ${{ github.event.release.tag_name }} thunderstore-build/*/dist/*.zip nupkg-build/*/bin/Release/*.nupkg

deploy-nuget:
name: Deploy to NuGet
needs: build
runs-on: ubuntu-latest
steps:
- name: Fetch Sources
uses: actions/checkout@v4

- name: Download nupkg artifact
uses: actions/download-artifact@v4
with:
name: nupkg-build

- name: Setup .NET environment
uses: actions/setup-dotnet@v3
with:
dotnet-version: "8.0.100"

- name: Publish to NuGet.org
run: |
dotnet nuget push ./*/bin/Release/*.nupkg --api-key ${{ secrets.NUGET_API_TOKEN }} --source https://api.nuget.org/v3/index.json
run: gh release upload ${{ github.event.release.tag_name }} thunderstore-build/*/dist/*.zip

deploy-thunderstore:
name: Deploy to Thunderstore
Expand Down

0 comments on commit d2af2e3

Please sign in to comment.