Skip to content

Allowed all leaves to handle particles #24

Allowed all leaves to handle particles

Allowed all leaves to handle particles #24

Workflow file for this run

name: Publish
on:
workflow_dispatch:
push:
tags:
- '*'
permissions:
contents: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
- name: Download version info file
uses: carlosperate/download-file-action@v2
with:
file-url: 'https://github.com/DynamicTreesTeam/DynamicTreesVersionInfo/blob/master/DynamicTrees.json?raw=true'
file-name: 'version_info.json'
location: './temp'
- name: Fetch full repo so tags are retrievable
run: git fetch --prune --unshallow
- name: Run autoUpdate task
run: ./gradlew autoUpdate
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
CURSEFORGE_API_KEY: ${{ secrets.CURSEFORGE_API_KEY }}
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
- name: Push version info to repo
uses: dmnemec/copy_file_to_another_repo_action@main
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
with:
source_file: 'temp/version_info.json'
destination_repo: 'DynamicTreesTeam/DynamicTreesVersionInfo'
destination_branch: 'master'
rename: 'DynamicTrees.json'
user_email: '[email protected]'
user_name: 'Harleyoc1'
commit_message: 'Updated version info for Dynamic Trees'