-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
49 lines (47 loc) · 1.36 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
43
44
45
46
47
48
49
name: 'Bundle Release Companion'
description: 'Release Arturo Bundle'
branding:
icon: package
color: purple
inputs:
token:
description: >-
The GITHUB_TOKEN secret.
required: true
name:
description: >-
The name of the application.
required: true
notes:
description: >-
The body for the releases . If this is not set, then the `github.ref` will be used.
default: ''
runs:
using: "composite"
steps:
- name: Download Artifact
uses: actions/download-artifact@v4
with:
path: ./assets
pattern: ${{ inputs.name }}-*
merge-multiple: true
github-token: ${{ inputs.token }}
- name: Debug environment
run: |
echo "NAME: ${{ inputs.name }}"
echo "VERSION: ${{ github.ref_name }}"
ls -laR ./assets
shell: bash
- name: Upload release assets
run: |
if [ "${{ inputs.notes }}" = "auto" ]; then
DESC="--generate-notes"
elif [ "${{ inputs.notes }}" = "" ]; then
DESC=""
else
DESC="--notes '${{ inputs.notes }}'"
fi
gh release create ${{ github.ref_name }} $DESC ./assets/*
env:
GITHUB_TOKEN: ${{ inputs.token }}
shell: bash