Skip to content

Commit

Permalink
fix: publication on manual dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
bric3 committed Mar 22, 2024
1 parent ec22f9e commit 082d675
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI-release
name: CI-release ${{ github.event.inputs.tag || github.event.release.tag_name }}

on:
# Release event https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows#release
Expand All @@ -14,8 +14,12 @@ on:
description: 'Tag to release'
required: true


# Environment variables
# https://docs.github.com/en/actions/learn-github-actions/variables

jobs:
publish:
release-publish:
runs-on: ubuntu-latest
steps:
- name: Check semver version in tag
Expand Down Expand Up @@ -50,4 +54,6 @@ jobs:
# Don't forget to deploy the release to central
# * 'Close' the repo to trigger the evaluations of to components against the requirements
# * 'Release' the repo
# https://central.sonatype.org/publish/release/
# https://central.sonatype.org/publish/release/
# If any errors occur, check the FAQ
# https://central.sonatype.org/faq/400-error/
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ configure(fireplaceModules) {
repositories {
maven {
if (providers.gradleProperty("publish.central").orNull.toBoolean()) {
val isGithubRelease =
providers.environmentVariable("GITHUB_EVENT_NAME").get().equals("release", true)
val isGithubRelease = providers.environmentVariable("GITHUB_JOB").get()
.equals("release-publish", true)
name = "central"
setUrl(isSnapshot.map { snap ->
uri(
Expand Down

0 comments on commit 082d675

Please sign in to comment.