Skip to content

Commit d3c15fd

Browse files
ci(github): create zip.yml
1 parent 46ecb5a commit d3c15fd

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/zip.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: zip
2+
on: push
3+
4+
jobs:
5+
zip:
6+
runs-on: ${{ matrix.os }}
7+
strategy:
8+
matrix:
9+
os: [ubuntu-latest, macos-latest, windows-latest]
10+
11+
steps:
12+
- name: zip
13+
shell: bash
14+
run: |
15+
if [[ $RUNNER_OS == 'Windows' ]]; then
16+
7z a -r archive.zip ./*
17+
else
18+
zip -r archive.zip .
19+
fi
20+
21+
- name: Upload artifacts
22+
uses: actions/upload-artifact@v6
23+
with:
24+
name: ${{ runner.os }}
25+
path: archive.zip

0 commit comments

Comments
 (0)