54 lines
1.8 KiB
YAML
54 lines
1.8 KiB
YAML
# 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 }}'
|