Skip to content

Commit ac050b8

Browse files
authored
Merge pull request #142 from IShix-g/release
fix: correct file path for artifact upload in workflow
2 parents 7f96742 + 1c4fe35 commit ac050b8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/reusable-release-package-upload.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,15 @@ jobs:
2828
- uses: actions/download-artifact@v4
2929
with:
3030
name: ${{ inputs.artifact-package-name }}
31+
path: ./artifacts
3132

3233
- name: Upload Package
3334
if: ${{ !inputs.dry-run }}
3435
env:
3536
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3637
run: |
3738
file="${{ inputs.artifact-package-name }}"
38-
file_path="./$file"
39+
file_path="./artifacts/$file"
3940
tag="${{ inputs.release-tag }}"
4041
gh release upload "$tag" "$file_path"
4142
echo "::notice title=Uploaded asset::$file"
@@ -46,6 +47,6 @@ jobs:
4647
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4748
run: |
4849
file="${{ inputs.artifact-package-name }}"
49-
file_path="./$file"
50+
file_path="./artifacts/$file"
5051
tag="${{ inputs.release-tag }}"
5152
echo "::notice title=Dry Run::Simulating upload of '$file_path' to release tag '$tag'."

0 commit comments

Comments
 (0)