Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): update release workflow #811

Merged
merged 2 commits into from
Jan 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}"
Loading