wip
This commit is contained in:
commit
42e77bd0eb
33 changed files with 1657 additions and 0 deletions
16
module/artifact-push/README.md
Normal file
16
module/artifact-push/README.md
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
# artifact-push
|
||||
|
||||
## Usage
|
||||
|
||||
```yml
|
||||
uses: actions/core/module/artifact-push@1.0.0
|
||||
with:
|
||||
name: artifact
|
||||
path: |
|
||||
build/**/*
|
||||
!build/exclude-*
|
||||
compression: 0
|
||||
retention-days: 30
|
||||
overwrite: false
|
||||
include-hidden-files: false
|
||||
```
|
||||
54
module/artifact-push/action.yml
Normal file
54
module/artifact-push/action.yml
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
# SPDX-License-Identifier: EUPL-1.2
|
||||
name: "Release"
|
||||
description: "Push build artifacts to the pipeline artifact storage"
|
||||
author: "Louis Seubert"
|
||||
inputs:
|
||||
name:
|
||||
required: true
|
||||
description: >
|
||||
The name of the artifact to upload. The name is used to identify the artifact in the
|
||||
artifact storage and must be unique within the repository.
|
||||
pattern:
|
||||
required: true
|
||||
description: >
|
||||
Paths to files which will be uploaded as artifact. Can be multiple lines with file system
|
||||
globbing patterns. A line starting with ! will negate the pattern and act as exclude
|
||||
pattern.
|
||||
retention-days:
|
||||
required: false
|
||||
description: >
|
||||
The number of days to keep the artifact in the artifact storage. After this period, the artifact will be
|
||||
automatically deleted. The default is 0 days which is the defaul value of the runner.
|
||||
default: 0
|
||||
overwrite:
|
||||
required: false
|
||||
description: >
|
||||
Whether an artifact with the same name should be overwritten if it already exists in the artifact storage.
|
||||
The default is false.
|
||||
default: "false"
|
||||
include-hidden:
|
||||
required: false
|
||||
description: >
|
||||
Whether hidden files should be included in the artifact. A hidden file is a file which
|
||||
starts with a dot (.) and is not the current or parent directory. Default is false.
|
||||
default: "false"
|
||||
runs:
|
||||
using: 'docker'
|
||||
image: 'code.geekeey.de/actions/core:1.0.0'
|
||||
args:
|
||||
- '--server'
|
||||
- '${{ github.server_url }}'
|
||||
- '--token'
|
||||
- '${{ github.token }}'
|
||||
- 'artifact'
|
||||
- 'push'
|
||||
- '--name'
|
||||
- '${{ inputs.name }}'
|
||||
- '--pattern'
|
||||
- '${{ inputs.pattern }}'
|
||||
- '--retention-days'
|
||||
- '${{ inputs.retention-days }}'
|
||||
- '--overwrite'
|
||||
- '${{ inputs.overwrite }}'
|
||||
- '--include-hidden'
|
||||
- '${{ inputs.include-hidden }}'
|
||||
Loading…
Add table
Add a link
Reference in a new issue