-
-
Notifications
You must be signed in to change notification settings - Fork 3
28 lines (24 loc) · 577 Bytes
/
zip.yml
File metadata and controls
28 lines (24 loc) · 577 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: zip
on: push
jobs:
zip:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: zip
shell: bash
run: |
if [[ $RUNNER_OS == 'Windows' ]]; then
7z a -r archive.zip ./*
else
zip -r archive.zip .
fi
- name: Upload artifacts
uses: actions/upload-artifact@v7
with:
name: ${{ runner.os }}
path: archive.zip