File tree Expand file tree Collapse file tree 2 files changed +27
-3
lines changed Expand file tree Collapse file tree 2 files changed +27
-3
lines changed Original file line number Diff line number Diff line change 1
1
name : Publish
2
2
3
3
on :
4
- release :
4
+ # release:
5
5
# We'll run this workflow when a new GitHub release is created
6
- types : [released]
6
+ # types: [released]
7
+ workflow_dispatch :
8
+ inputs :
9
+ version :
10
+ description : ' Version eg v1.0.0'
11
+ required : true
12
+ type : string
7
13
8
14
jobs :
9
15
publish :
34
40
./gradlew closeAndReleaseRepository
35
41
echo "Released ✅"
36
42
env :
37
- ORG_GRADLE_PROJECT_VERSION_NAME : ${{ github.event.release.tag_name }}
43
+ ORG_GRADLE_PROJECT_VERSION_NAME : ${{ github.event.inputs.version }}
38
44
ORG_GRADLE_PROJECT_signingInMemoryKey : ${{ secrets.SIGNING_KEY }}
39
45
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword : ${{ secrets.SIGNING_PASSWORD }}
40
46
ORG_GRADLE_PROJECT_mavenCentralUsername : ${{ secrets.OSSRH_USERNAME }}
41
47
ORG_GRADLE_PROJECT_mavenCentralPassword : ${{ secrets.OSSRH_PASSWORD }}
48
+
49
+ - name : Git push tag
50
+ run : |
51
+ git tag -a ${{ github.event.inputs.version }} -m "Release version ${{ github.event.inputs.version }}"
52
+ git push origin ${{ github.event.inputs.version }}
53
+
54
+ - name : Create Release
55
+
56
+ with :
57
+ tag : " ${{ github.event.inputs.version }}"
58
+ generateReleaseNotes : true
59
+ commit : " master"
60
+ makeLatest : true
Original file line number Diff line number Diff line change @@ -37,6 +37,11 @@ android {
37
37
compose true
38
38
}
39
39
namespace ' com.yogeshpaliyal.speld'
40
+ publishing {
41
+ singleVariant(" release" ) {
42
+ withSourcesJar()
43
+ }
44
+ }
40
45
}
41
46
42
47
dependencies {
You can’t perform that action at this time.
0 commit comments