fix(deps): update dependency io.sentry:sentry to v7.18.1 #141
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ποΈ Build | |
on: | |
pull_request: | |
merge_group: | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
IMAGE_NAME: vcspeaker.kt | |
jobs: | |
bump-version: | |
name: πΌ Bump version | |
runs-on: ubuntu-latest | |
outputs: | |
version: ${{ steps.version.outputs.new_version }} | |
tag: ${{ steps.version.outputs.new_tag }} | |
changelog: ${{ steps.version.outputs.changelog }} | |
steps: | |
- name: πΌ Bump release version | |
id: version | |
uses: mathieudutour/github-tag-action@v6.2 | |
with: | |
github_token: ${{ github.token }} | |
default_bump: "minor" | |
custom_release_rules: "breaking:major:π£ Breaking Changes,feat:minor:β¨ Features,fix:patch:π£ Bug Fixes,docs:patch:π° Docs,chore:patch:π¨ Chore,pref:patch:π Performance improvements,refactor:patch:π§Ή Refactoring,build:patch:π Build,ci:patch:π CI,revert:patch:βͺ Revert,style:patch:π§Ή Style,test:patch:π Test" | |
dry_run: true | |
build-docker: | |
name: ποΈ Build Docker (${{ matrix.architecture }}) | |
runs-on: ubuntu-latest | |
needs: bump-version | |
strategy: | |
fail-fast: false | |
matrix: | |
architecture: [ amd64, arm64 ] | |
steps: | |
- name: π₯ Checkout ${{ github.repository }} | |
uses: actions/checkout@v4 | |
- name: π Setup QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: ποΈ Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: π₯ Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: π Extract metadata (tags, labels) for Docker | |
id: meta | |
uses: docker/metadata-action@v5.6.1 | |
with: | |
images: ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }} | |
tags: | | |
type=raw,value=${{ needs.bump-version.outputs.version }}-${{ matrix.architecture }} | |
type=raw,value=latest-${{ matrix.architecture }} | |
- name: π Build Docker image | |
id: build | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
file: ./Dockerfile | |
push: false | |
platforms: linux/${{ matrix.architecture }} | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} | |
provenance: false | |
build-jar: | |
name: π¦ Build Jar | |
runs-on: ubuntu-latest | |
steps: | |
- name: β Setup Zulu JDK 21 | |
uses: actions/setup-java@v4.5.0 | |
with: | |
distribution: zulu | |
java-version: 21 | |
- name: π Setup Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
with: | |
gradle-version: release-candidate | |
- name: π₯ Checkout ${{ github.repository }} | |
uses: actions/checkout@v4 | |
- name: β Restore caches | |
uses: actions/cache@v4 | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: π Run Gradle command | |
run: | | |
gradle build | |
- name: π¦ Upload the artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: VCSpeaker.kt Shadow Jar | |
path: build/libs/vcspeaker-kt-all.jar | |
overwrite: true |