Skip to content

Commit 16005bd

Browse files
committed
update workflow
1 parent fa3373c commit 16005bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/webpack.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ jobs:
3535
run: npm run build
3636

3737
- name: Zip
38-
run: zip -r "${GITHUB_WORKSPACE}/${GITHUB_REPOSITORY#*/}.zip" .
38+
run: git archive -o "${GITHUB_WORKSPACE}/${GITHUB_REPOSITORY}.zip" ${GITHUB_SHA}
3939
shell: bash
4040

4141
- name: Upload zip
4242
uses: actions/upload-artifact@v4
4343
with:
4444
name: ${{ github.event.repository.name }}
45-
path: "${GITHUB_WORKSPACE}/${GITHUB_REPOSITORY#*/}.zip"
45+
path: ${{ github.workspace }}${{ github.repository }}.zip

0 commit comments

Comments
 (0)