Publish Rust Rcon Maven Package #1
Workflow file for this run
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 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 }} |