Skip to content

Commit

Permalink
Update GitHub Actions to use upload-artifact@v3
Browse files Browse the repository at this point in the history
The upload-artifact version in GitHub Actions workflows was updated from v2 to v3. This includes .github/workflows/release.yml, vsix.yml, cli-tool.yml, and vsmac.yml. The update was necessary to take advantage of the new features and improvements in v3, including faster upload speeds and support for uploading multiple paths and path exclusions.
  • Loading branch information
christianhelle committed Aug 8, 2023
1 parent 5cb78ff commit 5427e9a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cli-tool.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
run: dotnet pack --no-build -c Release /p:UseSourceLink=true src/CLI/ApiClientCodeGen.CLI/ApiClientCodeGen.CLI.csproj -p:PackageVersion="${{ env.VERSION }}"

- name: Publish artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: CLI Tool
path: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
mv src/VSIX/ApiClientCodeGen.VSIX/bin/Release/ApiClientCodeGenerator.vsix ApiClientCodeGenerator-VS2019-${{ env.VERSION }}.vsix
mv src/VSIX/ApiClientCodeGen.VSIX.Dev17/bin/Release/ApiClientCodeGenerator.vsix ApiClientCodeGenerator-VS2022-${{ env.VERSION }}.vsix
- name: Publish artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: Visual Studio Extension
path: |
Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:
run: dotnet nuget push **/*.nupkg -k ${{ secrets.NUGET_KEY }} -s ${{ env.NUGET_REPO_URL }} --no-symbols true
continue-on-error: true
- name: Publish artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: CLI Tool
path: |
Expand Down Expand Up @@ -107,7 +107,7 @@ jobs:
run: mv *.mpack ApiClientCodeGenerator-VSMac2022-${{ env.VERSION }}.mpack
working-directory: src
- name: Publish artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: Visual Studio for Mac Extension
path: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/vsix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
mv src/VSIX/ApiClientCodeGen.VSIX.Dev17/bin/Release/ApiClientCodeGenerator.vsix ApiClientCodeGenerator-VS2022-${{ env.VERSION }}.vsix
- name: Publish artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: Artifacts
path: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/vsmac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
working-directory: src/VSMac/ApiClientCodeGen.VSMac/bin/Release/

- name: Publish binaries
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: Binaries
path: src/VSMac/ApiClientCodeGen.VSMac/bin/Release/VSMac-Binaries.zip
Expand All @@ -56,7 +56,7 @@ jobs:
working-directory: src

- name: Publish artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: Extension
path: |
Expand Down

0 comments on commit 5427e9a

Please sign in to comment.