Skip to content

Auto-resolve README.md conflicts in sync workflow #33

Auto-resolve README.md conflicts in sync workflow

Auto-resolve README.md conflicts in sync workflow #33

Workflow file for this run

name: Build And Upload
on:
push:
tags:
- "*"
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
if: matrix.os != 'windows-latest'
- name: Run unit tests
run: ./gradlew ciTest --info
shell: bash
build:
needs: test
runs-on: ubuntu-latest
steps:
- name: Checkout project sources
uses: actions/checkout@v4
- name: Set up JDK 8
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'temurin'
- name: Setup Git
run: echo ${{ secrets.PAT }} | gh auth login --with-token
- name: Setup Gradle
uses: gradle/gradle-build-action@v3
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Run build with Gradle Wrapper
run: ./gradlew build -x test -Partifact_version=${{ github.ref_name }}
- name: Create Release and Upload Jar
run: |
gh release create ${{ github.ref_name }} -t "Release ${{ github.ref_name }}"
gh release upload "${{ github.ref_name }}" build/libs/* --clobber