Skip to content

Commit

Permalink
Merge pull request #356 from deepgram/chore/actions
Browse files Browse the repository at this point in the history
feat(tools): bump actions/artifact to v4
  • Loading branch information
jpvajda authored Dec 19, 2024
2 parents db9a7dc + 4e7a08a commit bd83caf
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/CD-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,21 @@ jobs:
run: |
dotnet pack Deepgram.DevBuild.sln --configuration Release --no-restore --output ./dist -p:Version=${{ steps.get_version.outputs.VERSION }}
- name: Archive build artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: dist
path: dist
name: dist-${{matrix.dotnet-version}}
path: "dist"
# Not sure if this is necessary, but this preserves existing behaviour.
include-hidden-files: true
publish:
runs-on: ubuntu-latest
needs: [build]
steps:
- name: Download build artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: dist
pattern: dist-*
merge-multiple: true
path: "dist"
- name: Publish packages
run: dotnet nuget push ./dist/**.nupkg --source nuget.org --api-key ${{secrets.NUGET_API_KEY}}
11 changes: 7 additions & 4 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,21 @@ jobs:
run: |
dotnet pack Deepgram.sln --configuration Release --no-restore --output ./dist -p:Version=${{ steps.get_version.outputs.VERSION }}
- name: Archive build artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: dist
name: dist-${{matrix.dotnet-version}}
path: dist
# Not sure if this is necessary, but this preserves existing behaviour.
include-hidden-files: true
publish:
runs-on: ubuntu-latest
needs: [build]
steps:
- name: Download build artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: dist
pattern: dist-*
merge-multiple: true
path: "dist"
- name: Publish packages
run: dotnet nuget push ./dist/**.nupkg --source nuget.org --api-key ${{secrets.NUGET_API_KEY}}

0 comments on commit bd83caf

Please sign in to comment.