mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-24 09:46:42 +00:00
ci fixes
This commit is contained in:
parent
38ff70d821
commit
f3a846f56a
20
.drone.yml
20
.drone.yml
|
@ -93,16 +93,16 @@ steps:
|
||||||
GOOGLE_KEYSTORE_PASS:
|
GOOGLE_KEYSTORE_PASS:
|
||||||
from_secret: GOOGLE_KEYSTORE_PASS
|
from_secret: GOOGLE_KEYSTORE_PASS
|
||||||
|
|
||||||
- name: Build Intermediate Android Release Artifact (Bundle)
|
# - name: Build Intermediate Android Release Artifact (Bundle)
|
||||||
commands:
|
# commands:
|
||||||
- ./ci.py --build-bundle
|
# - ./ci.py --build-bundle
|
||||||
environment:
|
# environment:
|
||||||
STANDALONE_KEYSTORE_PASS:
|
# STANDALONE_KEYSTORE_PASS:
|
||||||
from_secret: STANDALONE_KEYSTORE_PASS
|
# from_secret: STANDALONE_KEYSTORE_PASS
|
||||||
FDROID_KEYSTORE_PASS:
|
# FDROID_KEYSTORE_PASS:
|
||||||
from_secret: FDROID_KEYSTORE_PASS
|
# from_secret: FDROID_KEYSTORE_PASS
|
||||||
GOOGLE_KEYSTORE_PASS:
|
# GOOGLE_KEYSTORE_PASS:
|
||||||
from_secret: GOOGLE_KEYSTORE_PASS
|
# from_secret: GOOGLE_KEYSTORE_PASS
|
||||||
|
|
||||||
- name: Sign Android Release Artifact (.APK) for Standalone Use
|
- name: Sign Android Release Artifact (.APK) for Standalone Use
|
||||||
commands:
|
commands:
|
||||||
|
|
2
ci.py
2
ci.py
|
@ -52,7 +52,7 @@ def gitea_create_release():
|
||||||
url = f"{GITEA_HOST_URL}/api/v1/repos/{GITEA_REPO_FULL}/releases"
|
url = f"{GITEA_HOST_URL}/api/v1/repos/{GITEA_REPO_FULL}/releases"
|
||||||
token = os.environ.get("GITEA_RELEASE_TOKEN")
|
token = os.environ.get("GITEA_RELEASE_TOKEN")
|
||||||
params = {"access_token": f"{token}"}
|
params = {"access_token": f"{token}"}
|
||||||
json = {"tag_name": f"{APP_SEMVER}", "name": f"{APP_SEMVER}", "prerelease": True}
|
json = {"tag_name": f"{os.environ.get('DRONE_SEMVER') or APP_SEMVER}", "name": f"{os.environ.get('DRONE_SEMVER' or APP_SEMVER)}", "prerelease": True}
|
||||||
|
|
||||||
request = requests.post(url, params=params, json=json)
|
request = requests.post(url, params=params, json=json)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue