Publish to github releases (#3110)

This commit is contained in:
jekkos
2021-05-26 10:43:17 +02:00
parent 72eab0cd28
commit 0efd58217f
3 changed files with 23 additions and 37 deletions

View File

@@ -1,4 +1,5 @@
sudo: required
if: tag IS blank
branches:
except:
@@ -9,8 +10,7 @@ before_install:
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
- date=`date +%Y%m%d%H%M%S` && branch=${TRAVIS_BRANCH} && rev=`git rev-parse --short=6
HEAD` && sed -i "s/\$1/\$1.$date.$branch.$rev/g" deployment.json
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker run --rm -v $(pwd):/app jekkos/composer composer install
@@ -22,15 +22,27 @@ script:
- docker-compose -f docker-compose.test.yml up --abort-on-container-exit
env:
global:
- DOCKER_COMPOSE_VERSION=1.21.1
- TAG=$(echo ${TRAVIS_BRANCH} | sed s/feature\\///)
after_success:
- 'docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" && docker tag "ospos:latest" "jekkos/opensourcepos:$TAG" && docker push "jekkos/opensourcepos:$TAG"'
- DOCKER_COMPOSE_VERSION=1.21.1
- TAG=$(echo ${TRAVIS_BRANCH} | sed s/feature\\///)
after_success:
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" && docker tag "ospos:latest"
"jekkos/opensourcepos:$TAG" && docker push "jekkos/opensourcepos:$TAG"
before_deploy:
- date=`date +%Y%m%d%H%M%S` && branch=${TRAVIS_BRANCH} && rev=`git rev-parse --short=6 HEAD`
- TRAVIS_TAG=$(echo $branch)
- git tag -f "$branch"
- sudo mv dist/opensourcepos.zip "dist/opensourcepos.$date.$branch.$rev.zip"
deploy:
file: deployment.json
provider: bintray
provider: releases
file: "dist/opensourcepos.$date.$branch.$rev.zip"
name: "$TAG"
release_notes_file: WHATS_NEW.txt
prerelease: true
skip_cleanup: true
key: ${BINTRAY_API_KEY}
user: jekkos
overwrite: true
api_key:
secure: Ax25mMRDfHVf/HjRwqxYJe2oMnWC4sc2aKIiUxAOviVJJSCl4GMWhcFlUNnFsDcKIg2ofEGMVD6b9cTBuOwPDvymUDFnLNCCgDWve+vRDdWaTkTipn77Qk4c9UO9VvuzlPSKopChefPHlQ0n1rEmAMiKIXuqjUlNGqybW4FLP4E=
on:
all_branches: true
all_branches: true

View File

@@ -139,7 +139,7 @@ If missing information is not provided within a week we will close your issue.
FAQ
---
* If you are seeing the message **system folder missing**, then you have cloned the source using git and you need to run a build *first*. Check [INSTALL.md](https://github.com/opensourcepos/opensourcepos/blob/master/INSTALL.md) for instructions or download latest zip file from [bintray](https://bintray.com/jekkos/opensourcepos/opensourcepos/view/files?sort=updated&order=desc#files) instead.
* If you are seeing the message **system folder missing**, then you have cloned the source using git and you need to run a build *first*. Check [INSTALL.md](https://github.com/opensourcepos/opensourcepos/blob/master/INSTALL.md) for instructions or download latest zip file from [PLACEHOLDER](https://NEWURL) instead.
* If at login time you read "The installation is not correct, check your php.ini file.", please check the error_log in public folder to understand what's wrong and make sure you read the [INSTALL.md](https://github.com/opensourcepos/opensourcepos/blob/master/INSTALL.md). To know how to enable error_log, please read the comment in [issue 1770](https://github.com/opensourcepos/opensourcepos/issues/1770#issuecomment-355177943).

View File

@@ -1,26 +0,0 @@
{
"package": {
"name": "opensourcepos",
"repo": "opensourcepos",
"subject": "jekkos",
"website_url": "https://www.github.com/opensourcepos/opensourcepos",
"issue_tracker_url": "https://github.com/opensourcepos/opensourcepos/issues",
"vcs_url": "https://github.com/opensourcepos/opensourcepos.git",
"github_use_tag_release_notes": true,
"github_release_notes_file": "WHATS_NEW.txt",
"licenses": ["MIT"],
"labels": ["pointofsale"],
"public_download_numbers": true,
"public_stats": true
},
"version": {
"name": "3.4.0-dev"
},
"files": [
{"includePattern": "dist(.*)\\.(zip)", "uploadPattern": "$1.$2"}
],
"matrixParams": {
"override": 1
},
"publish": true
}