-
Notifications
You must be signed in to change notification settings - Fork 5
31 lines (24 loc) · 994 Bytes
/
publish.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
name: Publish App on Nextcloud Appstore
on:
release:
types: [released]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Check Event type
run: |
echo "event name is:" ${{ github.event_name }}
echo "event type is:" ${{ github.event.action }}
- name: Setup app env
run: |
echo "APP_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
echo "APP_RELEASE=${GITHUB_REF##*/}" >> $GITHUB_ENV
echo "APP_VERSION=${GITHUB_REF##*/V}" >> $GITHUB_ENV
- name: Upload app ${{ env.APP_NAME }} ${{ env.APP_VERSION }} to Nextcloud appstore
uses: nextcloud-releases/nextcloud-appstore-push-action@a011fe619bcf6e77ddebc96f9908e1af4071b9c1 # v1
with:
app_name: ${{ env.APP_NAME }}
appstore_token: ${{ secrets.APPSTORE_TOKEN }}
download_url: ${{ github.event.release.assets[0].browser_download_url }}
app_private_key: ${{ secrets.APP_PRIVATE_KEY }}