Skip to content

chore(deps): bump jreleaser/release-action from 2.4.1 to 2.4.2 #886

chore(deps): bump jreleaser/release-action from 2.4.1 to 2.4.2

chore(deps): bump jreleaser/release-action from 2.4.1 to 2.4.2 #886

Workflow file for this run

name: ci
on:
push:
branches:
- main
paths-ignore:
- README.md
pull_request:
branches:
- main
paths-ignore:
- README.md
workflow_dispatch:
inputs:
version:
description: Release version
required: true
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up GraalVM and Native Image
uses: graalvm/setup-graalvm@v1
with:
version: 22.3.0
java-version: 19
components: native-image
github-token: ${{ secrets.GITHUB_TOKEN }}
cache: maven
- name: Build
run: ./mvnw --batch-mode -Dstyle.color=always verify
- name: Upload code coverage
uses: codecov/codecov-action@v4
- name: Upload native-image configuration files
if: github.event_name == 'workflow_dispatch'
uses: actions/upload-artifact@v3
with:
name: native-image-configuration
path: target/classes/META-INF/native-image
assemble:
if: github.event_name == 'workflow_dispatch'
needs: build
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-20.04
target: linux
- os: macos-10.15
target: osx
- os: windows-2022
target: windows
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Download native-image configuration files
uses: actions/download-artifact@v3
with:
name: native-image-configuration
path: target/classes/META-INF/native-image
- name: Set up GraalVM and Native Image
uses: graalvm/setup-graalvm@v1
with:
version: 22.3.0
java-version: 19
components: native-image
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build
run: |
./mvnw --batch-mode -Dstyle.color=always --activate-profiles assemble '-Drevision=${{ github.event.inputs.version }}' verify
- name: Upload distribution
uses: actions/upload-artifact@v3
with:
name: connor-${{ matrix.target }}-x86_64.zip
path: target/connor-*.zip
release:
needs: assemble
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Download linux distribution
uses: actions/download-artifact@v3
with:
name: connor-linux-x86_64.zip
path: target
- name: Download osx distribution
uses: actions/download-artifact@v3
with:
name: connor-osx-x86_64.zip
path: target
- name: Download windows distribution
uses: actions/download-artifact@v3
with:
name: connor-windows-x86_64.zip
path: target
- name: Release
uses: jreleaser/[email protected]
with:
version: 1.3.1
setup-java: true
env:
JRELEASER_GITHUB_TOKEN: ${{ secrets.GH_PAT }}
JRELEASER_PROJECT_VERSION: ${{ github.event.inputs.version }}
JRELEASER_SDKMAN_CONSUMER_KEY: ${{ secrets.SDKMAN_CONSUMER_KEY }}
JRELEASER_SDKMAN_CONSUMER_TOKEN: ${{ secrets.SDKMAN_CONSUMER_TOKEN }}
JRELEASER_TWITTER_CONSUMER_KEY: ${{ secrets.TWITTER_CONSUMER_KEY }}
JRELEASER_TWITTER_CONSUMER_SECRET: ${{ secrets.TWITTER_CONSUMER_SECRET }}
JRELEASER_TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
JRELEASER_TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}