Skip to content

Commit de17eda

Browse files
author
Julien Veyssier
committed
clarify package.json, allow nightly release, bump version
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
1 parent 8b16c48 commit de17eda

7 files changed

Lines changed: 21982 additions & 12283 deletions

File tree

.eslintrc.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,9 @@ module.exports = {
77
},
88
extends: [
99
'@nextcloud'
10-
]
10+
],
11+
rules: {
12+
'jsdoc/require-jsdoc': 'off',
13+
'jsdoc/tag-lines': 'off'
14+
}
1115
}

.github/workflows/release.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,13 @@ jobs:
1212
APP_ID: integration_discourse
1313
runs-on: ubuntu-latest
1414
steps:
15-
- name: Use Node 12
16-
uses: actions/setup-node@v1
15+
- name: Use Node 14
16+
uses: actions/setup-node@v2
1717
with:
18-
node-version: 12
18+
node-version: 14
19+
20+
- name: Set up npm
21+
run: npm i -g npm
1922

2023
- name: Setup PHP
2124
uses: shivammathur/setup-php@v2
@@ -95,7 +98,7 @@ jobs:
9598
asset_content_type: application/gzip
9699

97100
- name: Publish to appstore
98-
if: ${{ startsWith( steps.tag.outputs.currenttag , 'v' ) }}
101+
if: ${{ startsWith( steps.tag.outputs.currenttag , 'v' ) && !endsWith( steps.tag.outputs.currenttag , 'nightly' ) }}
99102
id: publish
100103
run: |
101104
SIGNATURE=$(cat /tmp/build/sign.txt | tr -d '\n')
@@ -104,3 +107,14 @@ jobs:
104107
curl -X POST -H "Authorization: Token $APPSTORE_TOKEN" https://apps.nextcloud.com/api/v1/apps/releases -H "Content-Type: application/json" -d '{"download":"'${DOWNLOAD_URL}'", "signature": "'${SIGNATURE}'"}'
105108
env:
106109
APPSTORE_TOKEN: ${{ secrets.APPSTORE_TOKEN }}
110+
111+
- name: Publish nightly release to appstore
112+
if: ${{ startsWith( steps.tag.outputs.currenttag , 'v' ) && endsWith( steps.tag.outputs.currenttag , 'nightly' ) }}
113+
id: nightly
114+
run: |
115+
SIGNATURE=$(cat /tmp/build/sign.txt | tr -d '\n')
116+
VERSION=${{ steps.build_release.outputs.version }}
117+
DOWNLOAD_URL=https://github.com/${{ github.repository }}/releases/download/v${VERSION}/${APP_ID}-${VERSION}.tar.gz
118+
curl -X POST -H "Authorization: Token $APPSTORE_TOKEN" https://apps.nextcloud.com/api/v1/apps/releases -H "Content-Type: application/json" -d '{"download":"'${DOWNLOAD_URL}'", "signature": "'${SIGNATURE}'", "nightly": true}'
119+
env:
120+
APPSTORE_TOKEN: ${{ secrets.APPSTORE_TOKEN }}

appinfo/info.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<summary>Integration of Discourse forum and mailing list management system</summary>
66
<description><![CDATA[Discourse integration provides a dashboard widget displaying your important notifications
77
and the ability to find topics and posts with Nextcloud's unified search.]]></description>
8-
<version>1.0.1</version>
8+
<version>1.0.2</version>
99
<licence>agpl</licence>
1010
<author>Julien Veyssier</author>
1111
<namespace>Discourse</namespace>
@@ -18,9 +18,6 @@
1818
<bugs>https://github.com/nextcloud/integration_discourse/issues</bugs>
1919
<screenshot>https://github.com/nextcloud/integration_discourse/raw/master/img/screenshot1.jpg</screenshot>
2020
<dependencies>
21-
<database min-version="9.4">pgsql</database>
22-
<database>sqlite</database>
23-
<database min-version="5.5">mysql</database>
2421
<nextcloud min-version="22" max-version="24"/>
2522
</dependencies>
2623
<settings>

0 commit comments

Comments
 (0)