Skip to content

Update insert-version.yml #28

Update insert-version.yml

Update insert-version.yml #28

Workflow file for this run

name: Publish
on:
push:
branches: ['master']
jobs:
build-and-publish:
strategy:
matrix:
# Use these Java versions, remove check-latest if more than 1
java: [21]
# and run on both Linux and Windows
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
gradle-version: "current"
- name: setup jdk ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'microsoft'
check-latest: true
- name: publish
continue-on-error: true
run: gradle publish
env:
PACKAGES_USER: ${{ secrets.PACKAGES_USER }}
PACKAGES_KEY: ${{ secrets.PACKAGES_WRITE }}