Skip to content

Try add ci script

Try add ci script #1

Workflow file for this run

name: CI
on: [push, pull_request]
defaults:
run:
shell: pwsh
jobs:
package_objects:
name: Package Objects
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Prepare Output Directories
run: for d in objects/*/ ; do mkdir -p ./artifacts/$d;
- name: Copy Objects to Output Structure
run: for d in objects/*/ ; do find "$d" -name *.dat -exec cp {} ./artifacts/$d \;; done;
- name: Package Objects
run: zip loco-open-graphics.zip ./artifacts/* -r
- name: Hash Objects
run: echo "SHA256=$(sha256sum loco-open-graphics.zip | cut -d \" \" -f 1)" >> $GITHUB_OUTPUT
id: hash
- name: Upload artifacts (CI)
uses: actions/upload-artifact@v4
with:
name: loco-open-graphics
path: loco-open-graphics.zip
if-no-files-found: error
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: loco-open-graphics.zip