1
1
name : Continuous Integration
2
- on : [push, pull_request]
2
+ on : [push, pull_request, workflow_dispatch ]
3
3
jobs :
4
4
check_duplicate_workflows :
5
5
name : Check for duplicate workflows
77
77
# https://stackoverflow.com/questions/57921325/gradle-signarchives-unable-to-read-secret-key
78
78
ORG_GRADLE_PROJECT_signingPassword : ${{ secrets.SONATYPE_SIGNING_KEY_PASSWORD }}
79
79
ORG_GRADLE_PROJECT_signingKey : ${{ secrets.SONATYPE_SIGNING_PRIVATE_KEY }}
80
+ GH_PERSONAL_ACCESS_TOKEN : ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
80
81
steps :
81
82
- uses : actions/checkout@v2
83
+ with :
84
+ persist-credentials : false # without this, all access tokens set later on will be ignored
82
85
- name : Set up JDK
83
86
uses : actions/setup-java@v1
84
87
with :
@@ -113,7 +116,7 @@ jobs:
113
116
exit 1
114
117
fi
115
118
- name : Make github snapshot release
116
- uses : " marvinpinto/action-automatic-releases@latest"
119
+ uses : marvinpinto/action-automatic-releases@latest
117
120
if : ${{ env.IS_SNAPSHOT_VERSION == 'true' }}
118
121
with :
119
122
repo_token : ${{ secrets.GITHUB_TOKEN }}
@@ -125,7 +128,7 @@ jobs:
125
128
core/build/libs/*.*
126
129
ksp/build/libs/*.*
127
130
- name : Make github release
128
- uses : " marvinpinto/action-automatic-releases@latest"
131
+ uses : marvinpinto/action-automatic-releases@latest
129
132
if : ${{ env.IS_SNAPSHOT_VERSION == 'false' }}
130
133
with :
131
134
repo_token : ${{ secrets.GITHUB_TOKEN }}
@@ -143,4 +146,4 @@ jobs:
143
146
./gradlew incrementPatchVersion setSnapshotVersionSuffix --info
144
147
git add gradle.properties
145
148
git commit -m "Setting next snapshot version [skip ci]"
146
- git push
149
+ git push https://x-access-token:${GH_PERSONAL_ACCESS_TOKEN}@github.com/${GITHUB_REPOSITORY}.git --follow-tags
0 commit comments