-
Notifications
You must be signed in to change notification settings - Fork 2
/
action.yml
42 lines (42 loc) · 1.21 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: 'nFPM - deb, rpm, apk and archlinux packager'
description: 'nFPM is a simple, 0-dependencies, deb, rpm, apk and archlinux packager'
branding:
icon: 'package'
color: 'purple'
inputs:
config:
description: "YAML config filepath"
default: 'nfpm.yml'
required: false
target:
description: 'Package target. Can be a folder'
required: false
default: ''
packager:
description: 'Packager type: deb|rpm|apk|archlinux'
required: true
default: ''
nfpm_version:
description: 'nFPM version'
required: false
default: '2.22.2'
outputs:
package:
description: "Created package name"
value: ${{ steps.run-nfpm.outputs.package }}
runs:
using: 'composite'
steps:
- run: |
echo "${{ github.action_path }}" >> $GITHUB_PATH
wget -qO- https://github.com/goreleaser/nfpm/releases/download/v${{inputs.nfpm_version}}/nfpm_${{inputs.nfpm_version}}_Linux_x86_64.tar.gz | tar --directory ${{ github.action_path }} -xz nfpm
shell: bash
- run: nfpm --version
shell: bash
- run: entrypoint.sh
id: run-nfpm
shell: bash
env:
INPUT_PACKAGER: ${{ inputs.packager }}
INPUT_CONFIG: ${{ inputs.config }}
INPUT_TARGET: ${{ inputs.target }}