Skip to content

Commit 4ebbc25

Browse files
committed
ci: publish from the release workflow
1 parent 2ba992b commit 4ebbc25

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,28 @@ jobs:
7070
env:
7171
GH_TOKEN: ${{ github.token }}
7272
run: gh release create "v${{ steps.version.outputs.revision }}" --title "Mawu ${{ steps.version.outputs.revision }}" --generate-notes
73+
74+
# A tag pushed with GITHUB_TOKEN does not start another workflow, so the
75+
# release publishes rather than waiting for publish.yml to notice the tag.
76+
publish:
77+
name: Publish to repo.blueva.net
78+
needs: release
79+
runs-on: ubuntu-latest
80+
steps:
81+
- name: Checkout
82+
uses: actions/checkout@v7
83+
with:
84+
ref: v${{ needs.release.outputs.revision }}
85+
- name: Set up JDK 17
86+
uses: actions/setup-java@v6
87+
with:
88+
distribution: temurin
89+
java-version: 17
90+
- name: Set up Gradle
91+
uses: gradle/actions/setup-gradle@v6
92+
- name: Publish the plugin and the runtime
93+
run: ./gradlew publishAllPublicationsToBluevaRepoRepository --no-daemon --stacktrace
94+
env:
95+
RELEASE_VERSION: ${{ needs.release.outputs.revision }}
96+
BLUEVA_REPO_USERNAME: ${{ secrets.BLUEVA_REPO_USERNAME }}
97+
BLUEVA_REPO_SECRET: ${{ secrets.BLUEVA_REPO_SECRET }}

0 commit comments

Comments
 (0)