Skip to content

Commit 8c4dfb5

Browse files
committed
ci: compress build artifact to speed up upload to publish job
1 parent 64065a4 commit 8c4dfb5

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,16 @@ jobs:
9999
npx node-pre-gyp package --runtime=electron --target=${{ matrix.version.electron }} --arch=arm64 --target_arch=arm64
100100
npx node-pre-gyp-github publish
101101
102+
- name: Prepare artifact for upload
103+
if: matrix.os == 'ubuntu-latest'
104+
run: tar -zcf artifact.tar.gz .
105+
102106
- name: Upload artifact
103107
if: matrix.os == 'ubuntu-latest'
104108
uses: actions/upload-artifact@v3
105109
with:
106110
name: build-ubuntu
107-
path: ${{ github.workspace }}
111+
path: artifact.tar
108112
if-no-files-found: error
109113
retention-days: 5
110114

@@ -117,6 +121,9 @@ jobs:
117121
with:
118122
name: build-ubuntu
119123

124+
- name: Extract artifact
125+
run: tar -xzf artifact.tar.gz
126+
120127
- name: Publish
121128
env:
122129
NPM_PUBLISH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

0 commit comments

Comments
 (0)