Bump io.ktor:ktor-client-serialization from 2.3.12 to 3.0.1 #200
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: CI | |
on: | |
push: | |
paths: | |
- '**' | |
branches: | |
- '**' | |
tags: | |
- '*.*.*' | |
workflow_dispatch: | |
env: | |
ARTIFACT_NAME: ask-ai | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-22.04 | |
permissions: | |
contents: read | |
packages: read | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 17 | |
distribution: temurin | |
- name: Set Gradle permissions | |
run: chmod +x gradlew | |
- name: Build project | |
uses: gradle/gradle-build-action@v3 | |
env: | |
GHPKG_USER: ${{ github.repository_owner }} | |
GHPKG_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
arguments: build | |
cache-disabled: true | |
- name: Upload build artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ env.ARTIFACT_NAME }} | |
path: build/libs/*.jar | |
release: | |
name: Release | |
runs-on: ubuntu-22.04 | |
needs: build | |
if: ${{ github.event_name == 'push' && github.ref_type == 'tag' }} | |
permissions: | |
contents: write | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- name: Download build artifact | |
uses: actions/download-artifact@v4.1.8 | |
with: | |
name: ${{ env.ARTIFACT_NAME }} | |
path: artifact | |
- name: Create draft release | |
uses: softprops/action-gh-release@v2 | |
with: | |
draft: true | |
tag_name: ${{ github.ref_name }} | |
files: artifact/*.jar | |
token: ${{ secrets.GITHUB_TOKEN }} |