forked from WebFreak001/deploy-nightly
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
58 lines (54 loc) · 1.82 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
50
51
52
53
54
55
56
57
58
name: 'Deploy Nightly'
description: 'Deploy an asset to a GitHub release with date and commit hash and delete old assets.'
author: 'WebFreak001'
branding:
icon: 'grid'
color: 'purple'
inputs:
upload_url:
description: 'GitHub upload URL'
required: true
release_id:
description: 'GitHub release id'
required: true
asset_path:
description: 'Path to archive to upload'
required: true
asset_name:
description: 'Name of the file to upload with a $$ placeholder to insert date and hash into'
required: true
old_asset_name:
description: 'Name of the file to delete, and $$ can be used to match multiple characters. If not specified, asset_name will be used to match the old asset file'
required: false
default: ""
asset_content_type:
description: 'Content type of the uploaded file'
required: true
max_releases:
description: 'Maximum number of historical releases with the given asset_name to keep'
required: false
default: 7
ignore_hash:
description: 'If a release asset exists associated with the current commit, upload anyway?'
required: false
default: false
token:
description: 'The Github token.'
required: false
default: ${{ github.token }}
repo:
description: 'Optionally specify the repository ("OwnerName/RepoName") where the release is located. Defaults to current repository'
required: false
default: ${{ github.repository }}
sha:
description: 'Optionally specify the commit SHA for release filename. Defaults to SHA that triggered the workflow. Only the first 6 characters are used'
required: false
default: ${{ github.sha }}
outputs:
uploaded:
description: 'yes if a new upload has been made, no if the upload already existed'
url:
description: 'GitHub asset URL'
runs:
using: 'node20'
main: 'index.js'