Skip to content

Commit ea334b1

Browse files
authored
Update build_when_commit.yml
1 parent b697bd6 commit ea334b1

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/build_when_commit.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,18 @@ jobs:
1515
- name: Build Linux x86_64
1616
run: |
1717
docker run --rm -v $GITHUB_WORKSPACE:/root/workdir multiarch/alpine:amd64-latest-stable /bin/sh -c "apk add bash git nodejs npm && cd /root/workdir && chmod +x scripts/build.alpine.release.sh && bash scripts/build.alpine.release.sh"
18+
1819
- name: List files in subconverter directory
1920
run: ls -lah subconverter/
2021

22+
- name: Zip the build directory
23+
run: zip -r subconverter_linux64.zip subconverter/
24+
2125
- name: Upload Build Artifact
2226
uses: actions/upload-artifact@v3
2327
with:
24-
name: subconverter_linux64
25-
path: subconverter/
28+
name: subconverter_linux64.zip
29+
path: subconverter_linux64.zip
2630

2731
- name: Create Release
2832
id: create_release
@@ -41,6 +45,6 @@ jobs:
4145
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4246
with:
4347
upload_url: ${{ steps.create_release.outputs.upload_url }}
44-
asset_path: ./subconverter/subconverter_linux64.zip
48+
asset_path: ./subconverter_linux64.zip
4549
asset_name: subconverter_linux64.zip
4650
asset_content_type: application/zip

0 commit comments

Comments
 (0)