No description
Find a file
2020-03-21 15:02:44 +01:00
dist feat: add recursive support 2020-03-21 14:46:00 +01:00
.gitignore feat: project files 2020-03-21 12:41:59 +01:00
action.yml docs: usage and inputs 2020-03-21 15:02:44 +01:00
index.js feat: add recursive support 2020-03-21 14:46:00 +01:00
LICENSE Initial commit 2020-03-20 22:31:44 +01:00
package.json feat: project files 2020-03-21 12:41:59 +01:00
README.md docs: usage and inputs 2020-03-21 15:02:44 +01:00
yarn.lock feat: project files 2020-03-21 12:41:59 +01:00

action-zip

Action for zipping files easily

Usage

The only requirement is to use the official actions/checkout@v2 first so the zip action has access to the repo files.

name: Zip Files

on:
  release:
    types: [published]

jobs:
  zip-files:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: papeloto/action-zip@v1
        with:
          files: dist/ manifest.json
          dest: result.zip

In this example, after a release is published, a new file named result.zip will be created with both the file manifest.json and the folder dist (files included).

Inputs

files

Files or directories to zip.

  • Required: Yes

dest

Name of the output zip file.

  • Required: No
  • Default: result.zip

recursive

Whether to add subdirectories to simply zip all files to the root.

  • Required: No
  • Default: true