-
Notifications
You must be signed in to change notification settings - Fork 2
/
action.yml
42 lines (41 loc) · 1.57 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: 'Nextcloud push app to appstore'
description: 'Push a new release of your Nextcloud app directly to the Nextcloud appstore via its REST interface.'
inputs:
app_name:
description: 'The id of your Nextcloud app'
required: true
appstore_token:
description: 'A valid access token to upload a new version of your app into Nextcloud appstore'
required: false
appstore_username:
description: 'Username for Nextcloud appstore'
required: false
appstore_password:
description: 'Password for Nextcloud appstore'
required: false
download_url:
description: 'The download url of you app tarball'
required: true
app_private_key:
description: 'The private key string of you app to sign the new release. Usually stored in Github Secrets'
required: true
nightly:
description: 'Controls if the app will be published as nightly into the Nextcloud appstore'
required: false
default: false
runs:
using: "composite"
steps:
- run: |
echo "${{ inputs.app_private_key }}" > "$APP_PRIVATE_KEY_FILE"
${{ github.action_path }}/push_appstore.sh
shell: bash
env:
APP_NAME: ${{ inputs.app_name }}
APPSTORE_TOKEN: ${{ inputs.appstore_token }}
APPSTORE_USERNAME: ${{ inputs.appstore_username }}
APPSTORE_PASSWORD: ${{ inputs.appstore_password }}
APPSTORE_URL: "https://apps.nextcloud.com/api/v1/apps/releases"
NIGHTLY: ${{ inputs.nightly }}
DOWNLOAD_URL: ${{ inputs.download_url }}
APP_PRIVATE_KEY_FILE: ${{ github.workspace }}/${{ inputs.app_name }}.key