Skip to content
This repository was archived by the owner on Dec 4, 2020. It is now read-only.

Commit 3ee95ff

Browse files
committed
Switch snapshots to nightly
Makes things a bit more predictable Signed-off-by: Harsh Shandilya <[email protected]>
1 parent befed1f commit 3ee95ff

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

.github/workflows/publish_snapshot.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
name: "Release per-commit snapshots"
1+
name: "Release nightly snapshots"
22
on:
3-
push:
4-
branches:
5-
- master
3+
schedule:
4+
- cron: '0 0 * * *'
65

76
jobs:
87
publish-snapshot:

library/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ plugins {
88
id 'digital.wup.android-maven-publish' version '3.6.3'
99
}
1010

11-
final def gitHash = { ->
11+
final def today = { ->
1212
final def stdout = new ByteArrayOutputStream()
1313
exec {
14-
commandLine 'git', 'describe', '--tags'
14+
commandLine 'date', '+%Y%m%d'
1515
standardOutput = stdout
1616
}
1717
stdout.toString().trim()
@@ -54,7 +54,7 @@ publishing {
5454
from components.android
5555
groupId "$GROUP"
5656
artifactId 'openpgp-ktx'
57-
version System.env['GITHUB_WORKFLOW'] != null ? "$VERSION_NAME" : "${gitHash()}-SNAPSHOT"
57+
version System.env['GITHUB_WORKFLOW'] != null ? "$VERSION_NAME" : "$VERSION_NAME-${today()}"
5858
}
5959
}
6060
}

0 commit comments

Comments
 (0)