Skip to content

Commit

Permalink
ci: fix artifact upload failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Silverlan authored Jan 23, 2024
1 parent 8825e96 commit 3f5ec1d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/pragma-linux-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,17 +111,19 @@ jobs:
cd "$curDir"
fi
mkdir artifacts
cp -u "pragma/build/CMakeCache.txt" artifacts/
cp -u "files_pragma_build.txt" artifacts/
cp -u "files_pragma_deps.txt" artifacts/
cp -u "files_pragma_install.txt" artifacts/
- name: Upload Artifacts
uses: actions/upload-artifact@v4
if: always()
with:
name: Artifacts
overwrite: true
path: |
"pragma/build/CMakeCache.txt"
"files_pragma_build.txt"
"files_pragma_deps.txt"
"files_pragma_install.txt"
path: "artifacts"

- name: Handle Error
uses: Silverlan/common_actions/action_handle_error@main
Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/pragma-windows-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ jobs:
run: |
# Install tree command
choco install tree
curDir=$(pwd)
if [ -d "c:/pragma/build" ]; then
Expand All @@ -167,17 +167,19 @@ jobs:
cd "$curDir"
fi
mkdir artifacts
cp -u "c:/pragma/build/CMakeCache.txt" artifacts/
cp -u "files_pragma_build.txt" artifacts/
cp -u "files_pragma_deps.txt" artifacts/
cp -u "files_pragma_install.txt" artifacts/
- name: Upload Artifacts
uses: actions/upload-artifact@v4
if: always()
with:
name: Artifacts
overwrite: true
path: |
"pragma/build/CMakeCache.txt"
"files_pragma_build.txt"
"files_pragma_deps.txt"
"files_pragma_install.txt"
path: "artifacts"

- name: Handle Error
uses: Silverlan/common_actions/action_handle_error@main
Expand Down

0 comments on commit 3f5ec1d

Please sign in to comment.