Skip to content

Commit

Permalink
GitHub Action to build pack artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
Motschen committed Dec 5, 2024
1 parent 3faed11 commit ed43c72
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/mod_support.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
name: Mod Support
about: Compatibility improvements with a specific mod
title: 'MOD NAME HERE (url here)'
labels: mod support
assignees: ''

---
28 changes: 28 additions & 0 deletions .github/workflows/assemble.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Execute Python Script

on: [ push, pull_request ]

jobs:
build:
runs-on: ubuntu-24.04
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set current date as env variable
run: echo "DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
- 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
pip install pillow
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Execute Python Script
run: python gen-pack.py ${{ env.DATE }}-${{ github.repository_owner }}
- name: Upload artifacts to GitHub
uses: actions/upload-artifact@v4
with:
name: Better Leaves Lite Artifact
path: Better-Leaves-Lite-${{ env.DATE }}-${{ github.repository_owner }}.zip
Binary file modified Better-Leaves-Lite-1.0.zip
Binary file not shown.

0 comments on commit ed43c72

Please sign in to comment.