Skip to content

Release

Release #13

Workflow file for this run

name: Release
on: workflow_dispatch
jobs:
peony_release:
runs-on: ubuntu-latest
name: Release VoluBind
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
steps:
- name: Setup Java 17
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- name: Install Peony from git repository
uses: baptiste0928/cargo-install@v2
with:
crate: peony
git: https://github.com/LilydevMC/Peony
tag: 0.2.0-223e662
- name: Checkout Repository Files
uses: actions/checkout@v4
- name: Run release
run: peony mod -d
publish:
runs-on: ubuntu-latest
name: Publish to Maven repository
env:
REPO_USER: ${{ secrets.MAVEN_USERNAME }}
REPO_TOKEN: ${{ secrets.MAVEN_PASSWORD }}
steps:
- name: Setup Java 17
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- name: Checkout Repository Files
uses: actions/checkout@v4
- name: make gradle wrapper executable
run: chmod +x ./gradlew
- name: Run publish task
run: ./gradlew publish