Skip to content

Commit

Permalink
Add action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidDragonsage committed Dec 29, 2024
1 parent 23c0d81 commit bdeaedb
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 0 deletions.
13 changes: 13 additions & 0 deletions action-7z-master/Dockerfile
Original file line number Diff line number Diff line change
@@ -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/*
21 changes: 21 additions & 0 deletions action-7z-master/LICENSE
Original file line number Diff line number Diff line change
@@ -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.
25 changes: 25 additions & 0 deletions action-7z-master/README.md
Original file line number Diff line number Diff line change
@@ -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/
```
9 changes: 9 additions & 0 deletions action-7z-master/action.yml
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit bdeaedb

Please sign in to comment.