Update insert-version.yml #28
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: 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 }} |