This commit is contained in:
Louis Seubert 2026-02-12 21:18:29 +01:00
commit d60d077ea9
Signed by: louis9902
GPG key ID: 4B9DB28F826553BD
33 changed files with 1657 additions and 0 deletions

View 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
```

View 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 }}'