diff --git a/action-7z-master/Dockerfile b/action-7z-master/Dockerfile new file mode 100644 index 000000000..997cf88b0 --- /dev/null +++ b/action-7z-master/Dockerfile @@ -0,0 +1,13 @@ +FROM alpine:3 + +LABEL "com.github.actions.name"="Action 7z" +LABEL "com.github.actions.description"="Create a 7zip file containing specific files from your repository" +LABEL "com.github.actions.icon"="folder-plus" +LABEL "com.github.actions.color"="green" +LABEL "maintainer"="Edgar" +LABEL "repository"="https://github.com/edgarrc/action-7z" +LABEL "homepage"="https://github.com/edgarrc/action-7z" +LABEL "version"="1.0.0" + +RUN apk --update --no-cache add p7zip +RUN rm -rf /var/cache/apk/* /tmp/* diff --git a/action-7z-master/LICENSE b/action-7z-master/LICENSE new file mode 100644 index 000000000..ac9de245f --- /dev/null +++ b/action-7z-master/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Edgar + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/action-7z-master/README.md b/action-7z-master/README.md new file mode 100644 index 000000000..3b65fb049 --- /dev/null +++ b/action-7z-master/README.md @@ -0,0 +1,25 @@ +# 7zip Files Action + +This GitHub action exposes the 7zip command for use in archiving. + +## 7zip references + +- [https://documentation.help/7-Zip/start.htm](https://documentation.help/7-Zip/start.htm) +- [http://7zip.bugaco.com/7zip/MANUAL/commands/index.htm](http://7zip.bugaco.com/7zip/MANUAL/commands/index.htm) + +## Usage + +Compressing the directory `build` into `build.7z`: + +a is for Add + +-t7z is the format + +-mx=9 is the method with x setting the level of compression + +```yaml +- uses: edgarrc/action-7z@v1 + with: + args: 7z a -t7z -mx=9 build.7z ./build/ +``` + diff --git a/action-7z-master/action.yml b/action-7z-master/action.yml new file mode 100644 index 000000000..a987ca8ae --- /dev/null +++ b/action-7z-master/action.yml @@ -0,0 +1,9 @@ +name: 'Action 7z' +author: 'edgarrc' +description: 'Create a 7zip file containing specific files from your repository' +branding: + icon: 'folder-plus' + color: 'green' +runs: + using: 'docker' + image: 'Dockerfile'