DP | Faster limit detection #208
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a basic workflow to help you get started with Actions | |
name: Build Datapacks | |
# Controls when the workflow will run - only when modifying pack or pushing changes etc | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'nnb_possessions/**' | |
- 'nnb_vote_system/**' | |
- 'nnb_jumpscares/**' | |
- 'nnb_spawnsystem/**' | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# ----------------------------------------- | |
# Build datapacks | |
# ----------------------------------------- | |
# Build the root pack | |
build_possessions_sys: | |
runs-on: ubuntu-latest | |
# needs: [validate_main] | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.x | |
- name: Run Python Script | |
run: | | |
python templates/generate_nnb_possessions.py > updated_list.txt 2>/dev/null | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Archive Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: logs | |
path: updated_list.txt | |
- name: Prepare File | |
run: | | |
cd nnb_possessions | |
zip -r ../nnb_possessions.zip * | |
- name: Deploy file | |
uses: wlixcc/[email protected] | |
with: | |
username: ${{ secrets.SFTP_USERNAME }} | |
server: ${{ secrets.SFTP_SERVER }} | |
port: 2022 | |
local_path: './nnb_possessions.zip' | |
remote_path: '/world/datapacks/' | |
sftp_only: true | |
password: ${{ secrets.SFTP_PASSWORD }} | |
- name: Deploy file - OPENWORLD | |
uses: wlixcc/[email protected] | |
with: | |
username: ${{ secrets.SFTP_USERNAME_OPENWORLD }} | |
server: ${{ secrets.SFTP_SERVER_OPENWORLD }} | |
port: 2022 | |
local_path: './nnb_possessions.zip' | |
remote_path: '/world/datapacks/' | |
sftp_only: true | |
password: ${{ secrets.SFTP_PASSWORD_OPENWORLD }} | |
build_vote_sys: | |
runs-on: ubuntu-latest | |
# needs: [validate_main] | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v4 | |
- name: Prepare File | |
run: | | |
cd nnb_vote_system | |
zip -r ../nnb_vote_system.zip * | |
- name: Deploy file | |
uses: wlixcc/[email protected] | |
with: | |
username: ${{ secrets.SFTP_USERNAME }} | |
server: ${{ secrets.SFTP_SERVER }} | |
port: 2022 | |
local_path: './nnb_vote_system.zip' | |
remote_path: '/world/datapacks/' | |
sftp_only: true | |
password: ${{ secrets.SFTP_PASSWORD }} | |
- name: Deploy file - OPENWORLD | |
uses: wlixcc/[email protected] | |
with: | |
username: ${{ secrets.SFTP_USERNAME_OPENWORLD }} | |
server: ${{ secrets.SFTP_SERVER_OPENWORLD }} | |
port: 2022 | |
local_path: './nnb_vote_system.zip' | |
remote_path: '/world/datapacks/' | |
sftp_only: true | |
password: ${{ secrets.SFTP_PASSWORD_OPENWORLD }} | |
build_jumpscare_sys: | |
runs-on: ubuntu-latest | |
# needs: [validate_main] | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v4 | |
- name: Prepare File | |
run: | | |
cd nnb_jumpscares | |
zip -r ../nnb_jumpscares.zip * | |
- name: Deploy file | |
uses: wlixcc/[email protected] | |
with: | |
username: ${{ secrets.SFTP_USERNAME }} | |
server: ${{ secrets.SFTP_SERVER }} | |
port: 2022 | |
local_path: './nnb_jumpscares.zip' | |
remote_path: '/world/datapacks/' | |
sftp_only: true | |
password: ${{ secrets.SFTP_PASSWORD }} | |
- name: Deploy file - OPENWORLD | |
uses: wlixcc/[email protected] | |
with: | |
username: ${{ secrets.SFTP_USERNAME_OPENWORLD }} | |
server: ${{ secrets.SFTP_SERVER_OPENWORLD }} | |
port: 2022 | |
local_path: './nnb_jumpscares.zip' | |
remote_path: '/world/datapacks/' | |
sftp_only: true | |
password: ${{ secrets.SFTP_PASSWORD_OPENWORLD }} | |
build_spawn_sys: | |
runs-on: ubuntu-latest | |
# needs: [validate_main] | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v4 | |
- name: Prepare File | |
run: | | |
cd nnb_spawnsystem | |
zip -r ../nnb_spawnsystem.zip * | |
- name: Deploy file | |
uses: wlixcc/[email protected] | |
with: | |
username: ${{ secrets.SFTP_USERNAME }} | |
server: ${{ secrets.SFTP_SERVER }} | |
port: 2022 | |
local_path: './nnb_spawnsystem.zip' | |
remote_path: '/world/datapacks/' | |
sftp_only: true | |
password: ${{ secrets.SFTP_PASSWORD }} | |
push_datapack: | |
runs-on: ubuntu-latest | |
needs: [build_possessions_sys, build_vote_sys, build_jumpscare_sys, build_spawn_sys] | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v4 | |
- name: Setup RCON connection | |
run: | | |
sudo apt-get install build-essential | |
git clone https://github.com/Tiiffi/mcrcon.git | |
cd mcrcon | |
make | |
sudo make install | |
- name: Import Texturepack | |
run: mcrcon -H ${{ secrets.ARCADE_RCON_IP }} -P ${{ secrets.ARCADE_RCON_PORT }} -p ${{ secrets.ARCADE_RCON_PASSWORD }} "minecraft:reload" | |
- name: Import Texturepack - OPENWORLD | |
run: mcrcon -H ${{ secrets.OPENWORLD_RCON_IP }} -P ${{ secrets.OPENWORLD_RCON_PORT }} -p ${{ secrets.OPENWORLD_RCON_PASSWORD }} "minecraft:reload" |