Skip to content

Commit 4725c59

Browse files
authored
chore(cicd): replace cache with arctifacts so pipeline fails on error (#2421)
1 parent e8bce0a commit 4725c59

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/deploy-main.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ jobs:
9393
TRACETEST_ENV: main
9494
ANALYTICS_FE_KEY: ${{ secrets.ANALYTICS_FE_KEY }}
9595
ANALYTICS_BE_KEY: ${{ secrets.ANALYTICS_BE_KEY }}
96+
- name: Upload assets
97+
uses: actions/upload-artifact@v3
98+
with:
99+
name: dist-${{ matrix.GOOS }}
100+
path: dist/${{ matrix.GOOS }}
96101

97102
release:
98103
runs-on: ubuntu-latest
@@ -124,18 +129,18 @@ jobs:
124129
- shell: bash
125130
run: |
126131
echo "sha_short=$(git rev-parse --short=8 $GITHUB_SHA)" >> $GITHUB_ENV
127-
- uses: actions/cache@v3
132+
- uses: actions/download-artifact@v3
128133
with:
129134
path: dist/linux
130-
key: linux-${{ env.sha_short }}
131-
- uses: actions/cache@v3
135+
key: dist-linux
136+
- uses: actions/download-artifact@v3
132137
with:
133138
path: dist/darwin
134-
key: darwin-${{ env.sha_short }}
135-
- uses: actions/cache@v3
139+
key: dist-darwin
140+
- uses: actions/download-artifact@v3
136141
with:
137142
path: dist/windows
138-
key: windows-${{ env.sha_short }}
143+
key: dist-windows
139144
- uses: actions/download-artifact@v3
140145
with:
141146
name: tracetest-web

0 commit comments

Comments
 (0)