Skip to content

Commit

Permalink
Insert README.md in info.xml description on release
Browse files Browse the repository at this point in the history
  • Loading branch information
Zorn committed Apr 23, 2018
1 parent 345c894 commit 1c89d4a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
# Social Login

Place this app in **nextcloud/apps/sociallogin**
Make possible create users and login via OAuth or OpenID

For OAuth you must create app for certain providers. Login button appear at login page if app id specified. Settings are in "Social login" section of settings page.

## Supported providers
## Supported OAuth providers

You can create app by followed urls. You can copy link of certain login button to get proper "redirect url" for OAuth app setting.

Expand Down
4 changes: 2 additions & 2 deletions appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<id>sociallogin</id>
<name>Social Login</name>
<summary>Social login via OAuth</summary>
<description><![CDATA[Make possible create users and login via OAuth]]></description>
<version>1.3.4</version>
<description></description>
<version>1.3.5</version>
<licence>agpl</licence>
<author mail="zorn7@yandex.ru" homepage="https://github.com/zorn-v/nextcloud-social-login">Zorn</author>
<namespace>SocialLogin</namespace>
Expand Down
13 changes: 12 additions & 1 deletion release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,18 @@ VERSION=v`grep '<version>' appinfo/info.xml | sed 's/[^0-9.]//g'`
UPLOAD_URL=`curl -sH "Authorization: token $GITHUB_TOKEN" -d "{\"tag_name\":\"$VERSION\"}" https://api.github.com/repos/zorn-v/nextcloud-social-login/releases | grep '"upload_url"' | sed 's/.*"\(https:.*\){.*/\1/'`
[ -z "$UPLOAD_URL" ] && echo Can not get assets url && exit 1

git archive master --prefix=sociallogin/ -o release.tar.gz
git checkout -b release
sed -i '/<description><\/description>/ {
a <description><![CDATA[
r README.md
a ]]></description>
d
}' appinfo/info.xml
git commit -am 'Release'
git archive release --prefix=sociallogin/ -o release.tar.gz
git checkout master
git branch -D release

curl -sH "Authorization: token $GITHUB_TOKEN" -H 'Content-Type: application/octet-stream' --data-binary '@release.tar.gz' ${UPLOAD_URL}?name=release.tar.gz > /dev/null
DOWNLOAD_URL=https://github.com/zorn-v/nextcloud-social-login/releases/download/$VERSION/release.tar.gz

Expand Down

0 comments on commit 1c89d4a

Please sign in to comment.