mirror of
https://github.com/TeamMidnightDust/RoundTreesPack.git
synced 2025-12-16 10:05:09 +01:00
Add publishing workflows
This commit is contained in:
27
.github/workflows/assemble.yml
vendored
Normal file
27
.github/workflows/assemble.yml
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
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
|
||||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
||||
- name: Execute Python Script
|
||||
run: python gen_pack.py ${{ env.DATE }} §7${{ github.repository_owner }} Edition
|
||||
- name: Upload artifacts to GitHub
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: Round Trees Artifact
|
||||
path: Round-Trees-${{ env.DATE }}.zip
|
||||
Reference in New Issue
Block a user