Skip to content

Commit 8077cad

Browse files
committed
ci: fix artifact uploads
Signed-off-by: mikeee <[email protected]>
1 parent 50fa8fb commit 8077cad

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/validate_examples.yaml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ jobs:
100100
run: |
101101
cd cli
102102
make
103-
echo "artifactPath=$HOME/artifacts/$GITHUB_SHA" >> $GITHUB_ENV
103+
echo "artifactPath=~/artifacts/$GITHUB_SHA/" >> $GITHUB_ENV
104104
mkdir -p $HOME/artifacts/$GITHUB_SHA/
105-
sudo cp dist/linux_amd64/release/dapr $artifactpath/dapr
105+
cp dist/linux_amd64/release/dapr $HOME/artifacts/$GITHUB_SHA/dapr
106106
CLI_VERSION=edge
107107
echo "DAPR_CLI_VER=$CLI_VERSION" >> $GITHUB_ENV
108108
@@ -111,16 +111,22 @@ jobs:
111111
run: |
112112
cd dapr_runtime
113113
make
114+
echo "artifactPath=~/artifacts/$GITHUB_SHA/" >> $GITHUB_ENV
114115
mkdir -p $HOME/artifacts/$GITHUB_SHA/
115-
cp dist/linux_amd64/release/* $artifactPath
116+
cp dist/linux_amd64/release/* $HOME/artifacts/$GITHUB_SHA/
116117
RUNTIME_VERSION=edge
117118
echo "DAPR_RUNTIME_VER=$RUNTIME_VERSION" >> $GITHUB_ENV
118119
119120
- name: Build Docker Image
120121
if: env.DAPR_REF != ''
121122
run: |
122123
cd dapr_runtime
123-
docker build --build-arg "PKG_FILES=*" -f ./docker/Dockerfile ./dist/linux_amd64/release -t daprio/dapr:edge-linux-amd64 --output type=tar,dest=$artifactPath/dapr_docker.tar
124+
docker build --build-arg "PKG_FILES=*" -f ./docker/Dockerfile ./dist/linux_amd64/release -t daprio/dapr:edge-linux-amd64 --output type=tar,dest=$HOME/artifacts/$GITHUB_SHA/dapr_docker.tar
125+
126+
- name: List artifacts
127+
if: env.DAPR_REF != '' || env.DAPR_CLI_REF != ''
128+
run: |
129+
ls -la $HOME/artifacts/$GITHUB_SHA/
124130
125131
- name: Upload dapr-artifacts
126132
uses: actions/upload-artifact@v4
@@ -195,7 +201,7 @@ jobs:
195201
- name: Display downloaded artifacts
196202
if: env.DAPR_CLI_VER == 'edge' || env.DAPR_RUNTIME_VER == 'edge'
197203
run: |
198-
ls ~/artifacts/$GITHUB_SHA
204+
ls -la ~/artifacts/$GITHUB_SHA/
199205
200206
- name: Set up Go
201207
id: setup-go

0 commit comments

Comments
 (0)