Skip to content

Publish Rust Rcon Maven Package #1

Publish Rust Rcon Maven Package

Publish Rust Rcon Maven Package #1

Workflow file for this run

name: Publish Rust Rcon Maven Package
on:
release:
types: [ created ]
env:
RELEASE_TAG: ${{ github.event.release.tag_name }}
jobs:
publish-package:
name: Publish Maven Package
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: adopt
java-version: 11
- name: Set maven artifact versions
run: mvn versions:set -DnewVersion=$RELEASE_TAG
- name: Publish package
run: mvn -DskipTests -B deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}