Skip to content

Commit

Permalink
Bump actions/upload-artifact from 3 to 4 (#496)
Browse files Browse the repository at this point in the history
* Bump actions/upload-artifact from 3 to 4

Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](actions/upload-artifact@v3...v4)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump actions/download-artifact from 3 to 4

Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 3 to 4.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](actions/download-artifact@v3...v4)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Attempt to fix workflow

Signed-off-by: Jonathan Mezach <jonathan.mezach@rr-wfm.com>

* Fix typo

Signed-off-by: Jonathan Mezach <jonathan.mezach@rr-wfm.com>

* Download test package too

Signed-off-by: Jonathan Mezach <jonathan.mezach@rr-wfm.com>

* Fix publish job

Signed-off-by: Jonathan Mezach <jonathan.mezach@rr-wfm.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Jonathan Mezach <jonathan.mezach@rr-wfm.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jonathan Mezach <jonathan.mezach@rr-wfm.com>
  • Loading branch information
dependabot[bot] and jmezach authored Dec 18, 2023
1 parent 712a605 commit ce0dfde
Showing 1 changed file with 32 additions and 18 deletions.
50 changes: 32 additions & 18 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ jobs:

# Upload SDK package
- name: upload SDK
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: nuget-packages
name: sdk-package
path: ./src/MSBuild.Sdk.SqlProj/bin/Release/

# Package TestProject
Expand All @@ -83,9 +83,9 @@ jobs:

# Upload TestProject package
- name: upload TestProject
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: nuget-packages
name: test-package
path: ./test/TestProject/bin/Release/

# Replace tokens
Expand All @@ -100,9 +100,9 @@ jobs:

# Upload templates package
- name: upload templates
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: nuget-packages
name: template-package
path: ./src/MSBuild.Sdk.SqlProj.Templates/bin/Release/

# Run tests in parallel
Expand Down Expand Up @@ -143,9 +143,16 @@ jobs:

# Download artifact
- name: download-artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: nuget-packages
name: sdk-package
path: test/TestProjectWithSDKRef/nuget-packages

# Download artifact
- name: download-artifact
uses: actions/download-artifact@v4
with:
name: test-package
path: test/TestProjectWithSDKRef/nuget-packages

# Restore packages
Expand All @@ -164,7 +171,7 @@ jobs:

# Upload binary log
- name: upload
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: binary-log-${{ matrix.os }}-${{ matrix.dotnet }}-exact-version
path: ./msbuild.binlog
Expand All @@ -182,14 +189,14 @@ jobs:
# Upload dacpac
- name: upload
if: ${{ matrix.os == 'ubuntu-22.04' && matrix.dotnet == '6.0.x' }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: dacpac-package
path: ./test/TestProjectWithSDKRef/bin/Debug/netstandard2.0/

# Upload binary log
- name: upload
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: binary-log-${{ matrix.os }}-${{ matrix.dotnet }}-floating-version
path: ./msbuild.binlog
Expand All @@ -215,7 +222,7 @@ jobs:
steps:
# Download artifacts
- name: download-artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: dacpac-package
path: ~/dacpac-package
Expand Down Expand Up @@ -271,11 +278,18 @@ jobs:
with:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.

# Download artifact
# Download SDK
- name: download-artifact
uses: actions/download-artifact@v4
with:
name: sdk-package
path: test/TestProjectWithSDKRef/nuget-packages

# Download test package
- name: download-artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: nuget-packages
name: test-package
path: test/TestProjectWithSDKRef/nuget-packages

# Setup .NET SDK
Expand Down Expand Up @@ -306,7 +320,7 @@ jobs:

# Upload binary log
- name: upload
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: binary-log-publish
path: ./msbuild.binlog
Expand All @@ -331,10 +345,10 @@ jobs:

# Download artifacts
- name: download-artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
id: download-nugetpackages
with:
name: nuget-packages
name: test-package
path: ~/nuget-packages

- name: Display structure of downloaded files
Expand Down

0 comments on commit ce0dfde

Please sign in to comment.