We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ebc966 commit 03f3bc3Copy full SHA for 03f3bc3
1 file changed
.github/workflows/publish.yml
@@ -25,7 +25,17 @@ jobs:
25
- name: Set up Gradle
26
uses: gradle/actions/setup-gradle@v4
27
28
- - name: Publish to GitHub Packages
+ - name: Publish release to GitHub Packages
29
+ if: github.event_name == 'release'
30
+ env:
31
+ GITHUB_ACTOR: ${{ github.actor }}
32
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33
+ GITHUB_REPOSITORY: ${{ github.repository }}
34
+ ORG_GRADLE_PROJECT_version: ${{ github.event.release.tag_name }}
35
+ run: ./gradlew publish
36
+
37
+ - name: Publish workflow dispatch to GitHub Packages
38
+ if: github.event_name == 'workflow_dispatch'
39
env:
40
GITHUB_ACTOR: ${{ github.actor }}
41
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments