Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Update EMI

Update EMI #35

Workflow file for this run

name: Build PR
on:
push:
branches:
- main
merge_group:
branches:
- main
workflow_dispatch:
jobs:
pack_pr:
if: ( !contains(github.event.head_commit.message, '[ci skip]') )
name: Pack PR
runs-on: ubuntu-22.04
concurrency:
group: pack_pr-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
- name: Restore Node cache
uses: actions/cache@v4
with:
path: ~/.nvm
key: ${{ runner.os }}-node-18.19.1
restore-keys: |
${{ runner.os }}-node-
- name: Restore mods cache
uses: actions/cache@v4
with:
# observe if this makes broken builds due to outdated mods (server onl)
path: dist/modcache
key: ${{ runner.os }}-mods-${{ hashFiles('manifest.json') }}
restore-keys: |
${{ runner.os }}-mods-
- name: Pack Modpack
env:
CFCORE_API_TOKEN: ${{ secrets.API_TOKEN }}
run: bash tools/build/build -c build-client
- name: Upload client artifact
uses: actions/upload-artifact@v4
with:
name: "client"
path: dist/client.zip
if-no-files-found: error
overwrite: true
# - name: Upload server artifact
# uses: actions/upload-artifact@v4
# with:
# name: "server"
# path: dist/server.zip
# if-no-files-found: error
# retention-days: 30
# overwrite: true