From 1929264da379ece163ec66081fc690bad9937f4d Mon Sep 17 00:00:00 2001 From: Monte Hellawell Date: Wed, 18 Nov 2020 14:58:41 +0000 Subject: [PATCH] Add another usage example --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index e08e6e4..d1cfffb 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,17 @@ Unzipping a `dir.zip` file: 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: ```yaml