Skip to content

Commit 41a30eb

Browse files
committed
fix(build): fix release
Signed-off-by: Teclib <[email protected]>
1 parent 09ab0af commit 41a30eb

File tree

8 files changed

+1616
-29
lines changed

8 files changed

+1616
-29
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ jobs:
160160
command: source ci/scripts/setup_environment.sh
161161
- run:
162162
name: Update version code
163-
command: ./gradlew updateVersionCode -P vVersion=$CIRCLE_BUILD_NUM
163+
command: ./gradlew updateVersionCode
164164
- run:
165165
name: Update version name
166166
command: ./gradlew updateVersionName -P vName=$GIT_TAG

CHANGELOG.md

Lines changed: 1589 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ guidelines for [contributing](./CONTRIBUTING.md)
123123

124124
## Issues / request features
125125

126-
Want to report a bug or request feature, please contact us [Here](https://portal.glpi-network.com/contactez-nous)
126+
Want to report a bug or request feature, please contact us [here](https://portal.glpi-network.com/contactez-nous)
127127

128128

129129
## Copying

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
33
xmlns:tools="http://schemas.android.com/tools"
44
package="org.glpi.inventory.agent"
5-
android:versionCode="39241"
5+
android:versionCode="39261"
66
android:versionName="">
77

88
<!-- Permissions -->
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
about.version=1.0.0-rc.2
2-
about.build=39241
3-
about.date=Mon Jan 06 14:19:41 2020
4-
about.commit=95f7696
5-
about.commitFull=95f76961dfdfd35dcc53b5a3ce349e4f0d19e80b
1+
about.version=1.0.0
2+
about.build=39261
3+
about.date=mar. janv. 07 12:16:53 2020
4+
about.commit=
5+
about.commitFull=
66
about.github=https://github.com/glpi-project/android-inventory-agent

ci/scripts/deploy_production.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ if [[ $GH_COMMIT_MESSAGE != *"ci(release): generate CHANGELOG.md for version"* &
4141

4242
# Get the version number from package.json
4343
export GIT_TAG=$(jq -r ".version" package.json)
44-
4544
# get if is a release or a pre release with "-"
4645
IS_PRERELEASE="$( cut -d '-' -f 2 <<< "$GIT_TAG" )";
4746

ci/scripts/release.sh

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636

3737
# Get version number from package.json
3838
export GIT_TAG=$(jq -r ".version" package.json)
39+
export GITHUB_TOKEN=$GH_TOKEN
3940

4041
# Generate CHANGELOG.md and increment version
4142
IS_PRERELEASE="$( cut -d '-' -f 2 <<< "$GIT_TAG" )";
@@ -69,33 +70,31 @@ git checkout . -f
6970
git push --follow-tags origin $CIRCLE_BRANCH
7071

7172
# Create release with conventional-github-releaser
72-
yarn conventional-github-releaser -p angular -t $GH_TOKEN
73+
yarn conventional-github-releaser -p angular -t $GH_TOKEN 2> /dev/null || true
7374

7475
# get apk path
75-
export FILE="./app/build/outputs/apk/release/appCertified.apk"
76+
# export FILE="./app/build/outputs/apk/release/appCertified.apk"
7677

77-
if [[ $CIRCLE_BRANCH != "$IS_PRERELEASE" ]]; then
78+
#if [[ $CIRCLE_BRANCH != "$IS_PRERELEASE" ]]; then
7879

7980
# Upload release
80-
yarn github-release upload \
81-
--user "${CIRCLE_PROJECT_USERNAME}" \
82-
--repo "${CIRCLE_PROJECT_REPONAME}" \
83-
--tag "${GIT_TAG}" \
84-
--name "InventoryAgent-${GIT_TAG}.apk" \
85-
--file ${FILE}
81+
# yarn github-release upload \
82+
# --user "${CIRCLE_PROJECT_USERNAME}" \
83+
# --repo "${CIRCLE_PROJECT_REPONAME}" \
84+
# --tag "${GIT_TAG}" \
85+
# --name "InventoryAgent-${GIT_TAG}.apk"
8686

87-
else
87+
# else
8888

8989
# Upload pre-release
90-
yarn github-release upload \
91-
--user "${CIRCLE_PROJECT_USERNAME}" \
92-
--repo "${CIRCLE_PROJECT_REPONAME}" \
93-
--tag "${GIT_TAG}" \
94-
--name "InventoryAgent-${GIT_TAG}.apk" \
95-
--file ${FILE} \
96-
--pre-release
97-
98-
fi
90+
# yarn github-release upload \
91+
# --user "${CIRCLE_PROJECT_USERNAME}" \
92+
# --repo "${CIRCLE_PROJECT_REPONAME}" \
93+
# --tag "${GIT_TAG}" \
94+
# --name "InventoryAgent-${GIT_TAG}.apk" \
95+
# --pre-release
96+
97+
# fi
9998

10099
# Update develop branch
101100
git add .

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@teclib/android-inventory-agent",
3-
"version": "1.0.0-rc.2",
3+
"version": "1.0.0",
44
"description": "GLPI Android Inventory Agent",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)