mirror of
https://github.com/TeamMidnightDust/BetterLeavesLite.git
synced 2025-12-14 19:55:08 +01:00
ci: workflow to build & publish pack
This commit is contained in:
1
.github/workflows/assemble.yml
vendored
1
.github/workflows/assemble.yml
vendored
@@ -17,7 +17,6 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install pillow
|
|
||||||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
||||||
- name: Execute Python Script
|
- name: Execute Python Script
|
||||||
run: python gen_pack.py ${{ env.DATE }} §7${{ github.repository_owner }} Edition
|
run: python gen_pack.py ${{ env.DATE }} §7${{ github.repository_owner }} Edition
|
||||||
|
|||||||
57
.github/workflows/publish.yml
vendored
Normal file
57
.github/workflows/publish.yml
vendored
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
name: Build & Publish Resourcepack
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
version:
|
||||||
|
description: 'The version name'
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-24.04
|
||||||
|
steps:
|
||||||
|
- name: Checkout Repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Set up Python 3.10
|
||||||
|
uses: actions/setup-python@v3
|
||||||
|
with:
|
||||||
|
python-version: "3.10"
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
||||||
|
- name: Compile Regular Edition
|
||||||
|
run: python gen_pack.py -m ${{ inputs.version }} Vanilla Edition
|
||||||
|
- name: Compile Programmer Art Edition
|
||||||
|
run: python gen_pack.py -m -p ${{ inputs.version }} §7Programmer Edition
|
||||||
|
- uses: Kir-Antipov/mc-publish@v3.3
|
||||||
|
with:
|
||||||
|
modrinth-id: uvpymuxq
|
||||||
|
modrinth-featured: true
|
||||||
|
modrinth-unfeature-mode: subset
|
||||||
|
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
|
||||||
|
|
||||||
|
curseforge-id: 380969
|
||||||
|
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
|
||||||
|
|
||||||
|
github-tag: ${{ inputs.version }}
|
||||||
|
github-generate-changelog: true
|
||||||
|
github-draft: false
|
||||||
|
github-prerelease: false
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
files: |
|
||||||
|
Better-Leaves-${{ inputs.version }}.zip
|
||||||
|
Better-Leaves-(Programmer-Art)-${{ inputs.version }}.zip
|
||||||
|
|
||||||
|
name: Better Leaves ${{ inputs.version }} - 1.20+
|
||||||
|
version: ${{ inputs.version }}
|
||||||
|
version-type: release
|
||||||
|
|
||||||
|
game-versions: |
|
||||||
|
>=1.20
|
||||||
|
game-version-filter: releases
|
||||||
|
dependencies: |
|
||||||
|
cull-leaves(recommended)
|
||||||
Reference in New Issue
Block a user