Skip to content

Commit

Permalink
Try add ci script
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanspumpkin committed Nov 1, 2024
1 parent 621207c commit b59b59e
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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

0 comments on commit b59b59e

Please sign in to comment.