mirror of
https://github.com/montudor/action-zip.git
synced 2024-11-24 09:00:56 -05:00
Add another usage example
This commit is contained in:
parent
bb35d8a108
commit
1929264da3
1 changed files with 11 additions and 0 deletions
11
README.md
11
README.md
|
@ -20,6 +20,17 @@ Unzipping a `dir.zip` file:
|
||||||
args: unzip -qq dir.zip -d dir
|
args: unzip -qq dir.zip -d dir
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Zipping a folder from a different work dir
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
- name: Install zip
|
||||||
|
uses: montudor/action-zip@v0.1.0
|
||||||
|
|
||||||
|
- name: Zip output
|
||||||
|
run: zip -qq -r function.zip dist node_modules package.json
|
||||||
|
working-directory: path/to/work-dir
|
||||||
|
```
|
||||||
|
|
||||||
Reusing the same zip between steps in a `PHP` CI with unit and mutation tests:
|
Reusing the same zip between steps in a `PHP` CI with unit and mutation tests:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
|
Loading…
Reference in a new issue