Skip to content

Commit

Permalink
clarify package.json, allow nightly release, bump version
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Veyssier <[email protected]>
  • Loading branch information
Julien Veyssier committed Nov 12, 2021
1 parent 8b16c48 commit d72e727
Show file tree
Hide file tree
Showing 7 changed files with 21,986 additions and 12,283 deletions.
6 changes: 5 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,9 @@ module.exports = {
},
extends: [
'@nextcloud'
]
],
rules: {
'jsdoc/require-jsdoc': 'off',
'jsdoc/tag-lines': 'off'
}
}
22 changes: 18 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ jobs:
APP_ID: integration_discourse
runs-on: ubuntu-latest
steps:
- name: Use Node 12
uses: actions/setup-node@v1
- name: Use Node 14
uses: actions/setup-node@v2
with:
node-version: 12
node-version: 14

- name: Set up npm
run: npm i -g npm

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand Down Expand Up @@ -95,7 +98,7 @@ jobs:
asset_content_type: application/gzip

- name: Publish to appstore
if: ${{ startsWith( steps.tag.outputs.currenttag , 'v' ) }}
if: ${{ startsWith( steps.tag.outputs.currenttag , 'v' ) && !endsWith( steps.tag.outputs.currenttag , 'nightly' ) }}
id: publish
run: |
SIGNATURE=$(cat /tmp/build/sign.txt | tr -d '\n')
Expand All @@ -104,3 +107,14 @@ jobs:
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}'"}'
env:
APPSTORE_TOKEN: ${{ secrets.APPSTORE_TOKEN }}

- name: Publish nightly release to appstore
if: ${{ startsWith( steps.tag.outputs.currenttag , 'v' ) && endsWith( steps.tag.outputs.currenttag , 'nightly' ) }}
id: nightly
run: |
SIGNATURE=$(cat /tmp/build/sign.txt | tr -d '\n')
VERSION=${{ steps.build_release.outputs.version }}
DOWNLOAD_URL=https://github.com/${{ github.repository }}/releases/download/v${VERSION}/${APP_ID}-${VERSION}.tar.gz
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}'
env:
APPSTORE_TOKEN: ${{ secrets.APPSTORE_TOKEN }}
5 changes: 1 addition & 4 deletions appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<summary>Integration of Discourse forum and mailing list management system</summary>
<description><![CDATA[Discourse integration provides a dashboard widget displaying your important notifications
and the ability to find topics and posts with Nextcloud's unified search.]]></description>
<version>1.0.1</version>
<version>1.0.2</version>
<licence>agpl</licence>
<author>Julien Veyssier</author>
<namespace>Discourse</namespace>
Expand All @@ -18,9 +18,6 @@
<bugs>https://github.com/nextcloud/integration_discourse/issues</bugs>
<screenshot>https://github.com/nextcloud/integration_discourse/raw/master/img/screenshot1.jpg</screenshot>
<dependencies>
<database min-version="9.4">pgsql</database>
<database>sqlite</database>
<database min-version="5.5">mysql</database>
<nextcloud min-version="22" max-version="24"/>
</dependencies>
<settings>
Expand Down
Loading

0 comments on commit d72e727

Please sign in to comment.