Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

Commit

Permalink
tweak publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddenton committed Nov 13, 2024
1 parent 2bb96ff commit 91fa222
Showing 1 changed file with 51 additions and 50 deletions.
101 changes: 51 additions & 50 deletions .github/workflows/upload_release.yaml
Original file line number Diff line number Diff line change
@@ -1,54 +1,55 @@
name: Publish Artifacts
'on':
push:
tags:
- '*'
on:
push:
tags:
- '*'
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
jobs:
Release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Grab tag name
uses: olegtarasov/[email protected]
id: tagName
- name: Setup Java
uses: actions/[email protected]
with:
distribution: temurin
java-version: 21
cache: gradle
- name: Upload to Sonatype
run: |
./gradlew publish publishToSonatype closeAndReleaseSonatypeStagingRepository \
-Psign=true \
-PreleaseVersion="${{ steps.tagName.outputs.tag }}" \
-PsigningKey="${{ secrets.SIGNING_KEY }}" \
-PsigningPassword="${{ secrets.SIGNING_PASSWORD }}" \
-PltsPublishingUser="${{ secrets.LTS_PUBLISHING_USER }}" \
-PltsPublishingPassword="${{ secrets.LTS_PUBLISHING_PASSWORD }}" \
-PnexusUsername="${{ secrets.NEXUS_USERNAME }}" \
-PnexusPassword="${{ secrets.NEXUS_PASSWORD }}"
- run: ./notify-lts-slack.sh ${{ steps.tagName.outputs.tag }}
env:
LTS_SLACK_WEBHOOK: ${{ secrets.LTS_SLACK_WEBHOOK }}
broadcast-release:
needs:
- Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Grab tag name
uses: olegtarasov/[email protected]
id: tagName
- name: Dispatch Release Event
uses: peter-evans/[email protected]
with:
token: '${{ secrets.ORG_PUBLIC_REPO_WORKFLOW_TRIGGERING }}'
repository: http4k/http4k-connect
event-type: http4k-connect-release
client-payload: '{"version": "${{ steps.tagName.outputs.tag }}"}'
Release:
runs-on: ubuntu-latest
if: github.repository == 'http4k/http4k-connect'
steps:
- name: Checkout
uses: actions/[email protected]
- name: Grab tag name
uses: olegtarasov/[email protected]
id: tagName
- name: Setup Java
uses: actions/[email protected]
with:
distribution: temurin
java-version: 21
cache: gradle
- name: Upload to Sonatype
run: |
./gradlew publish publishToSonatype closeAndReleaseSonatypeStagingRepository \
-Psign=true \
-PreleaseVersion="${{ steps.tagName.outputs.tag }}" \
-PsigningKey="${{ secrets.SIGNING_KEY }}" \
-PsigningPassword="${{ secrets.SIGNING_PASSWORD }}" \
-PltsPublishingUser="${{ secrets.LTS_PUBLISHING_USER }}" \
-PltsPublishingPassword="${{ secrets.LTS_PUBLISHING_PASSWORD }}" \
-PnexusUsername="${{ secrets.NEXUS_USERNAME }}" \
-PnexusPassword="${{ secrets.NEXUS_PASSWORD }}"
- run: ./notify-lts-slack.sh ${{ steps.tagName.outputs.tag }}
env:
LTS_SLACK_WEBHOOK: ${{ secrets.LTS_SLACK_WEBHOOK }}
broadcast-release:
needs:
- Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Grab tag name
uses: olegtarasov/[email protected]
id: tagName
- name: Dispatch Release Event
uses: peter-evans/[email protected]
with:
token: '${{ secrets.ORG_PUBLIC_REPO_WORKFLOW_TRIGGERING }}'
repository: http4k/http4k-connect
event-type: http4k-connect-release
client-payload: '{"version": "${{ steps.tagName.outputs.tag }}"}'

0 comments on commit 91fa222

Please sign in to comment.