Skip to content

Commit

Permalink
chore(ci): update release workflow (#811)
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi authored Jan 26, 2024
1 parent f69800f commit fc36fb9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
Binary file removed .github/release/maven-settings.xml.gpg
Binary file not shown.
30 changes: 17 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,18 @@ name: Quarkiverse Release

on:
pull_request:
types: [ closed ]
types: [closed]
paths:
- '.github/project.yml'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

defaults:
run:
shell: bash

jobs:
release:
runs-on: ubuntu-latest
Expand All @@ -20,27 +28,22 @@ jobs:
github-token: ${{secrets.GITHUB_TOKEN}}
metadata-file-path: '.github/project.yml'

- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Retrieve Quarkus version
id: quarkus-version
run: echo "quarkus_version=$(mvn help:evaluate -Dexpression=quarkus.version -q -DforceStdout)" >> $GITHUB_OUTPUT

- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v5
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}

- uses: actions/setup-java@v3
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
cache: 'maven'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE

- name: Configure Git author
run: |
Expand All @@ -59,11 +62,12 @@ jobs:
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}

- name: Push tags
run: git push && git push --tags

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
repository: quarkusio/quarkus-platform
path: quarkus-platform
Expand Down Expand Up @@ -95,7 +99,7 @@ jobs:
echo "Pull Request Number - ${{ steps.qp-pr.outputs.pull-request-number }}"
echo "Pull Request URL - ${{ steps.qp-pr.outputs.pull-request-url }}"
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
repository: operator-framework/java-operator-plugins
path: sdk-plugins
Expand Down Expand Up @@ -127,4 +131,4 @@ jobs:
if: ${{ steps.jop-pr.outputs.pull-request-number }}
run: |
echo "Pull Request Number - ${{ steps.jop-pr.outputs.pull-request-number }}"
echo "Pull Request URL - ${{ steps.jop-pr.outputs.pull-request-url }}"
echo "Pull Request URL - ${{ steps.jop-pr.outputs.pull-request-url }}"

0 comments on commit fc36fb9

Please sign in to comment.