Skip to content

refactor: remove oraxen-api and logic #10

refactor: remove oraxen-api and logic

refactor: remove oraxen-api and logic #10

Workflow file for this run

name: Publish
on:
push:
branches:
- master
- develop
paths-ignore:
- '**.md'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- name: Set env variable from latest maven version
run: >
echo "RELEASE_VERSION=$( \
curl https://repo.oraxen.com/releases/com/mineinabyss/idofront-util/maven-metadata.xml | \
grep -oP '(?!<latest>)[\d\.]*(?=</latest>)' \
)" >> $GITHUB_ENV
- name: Run gradle build and publish
run: gradle build publish -PoraxenMavenUsername=${{ secrets.MAVEN_USERNAME }} -PoraxenMavenPassword=${{ secrets.MAVEN_PASSWORD }}
- name: Get version from gradle
shell: bash
id: extract_version
run: |
version=`gradle properties --no-daemon --console=plain -q | grep "^version:" | awk '{printf $2}'`
echo "::set-output name=version::$version"
- name: Create GitHub Release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
automatic_release_tag: v${{ steps.extract_version.outputs.version }}
files: |
build/libs/*[0-9].jar