Update README.md #22
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
name: CI | |
on: [push, pull_request] | |
defaults: | |
run: | |
shell: bash | |
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; done; | |
- 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: cd artifacts/objects; zip ../../objects.zip ./* -r; cd ../.. | |
- name: Hash Objects | |
run: echo "SHA256=$(sha256sum objects.zip | cut -d " " -f 1)" >> $GITHUB_OUTPUT | |
id: hash | |
- name: Upload artifacts (CI) | |
uses: actions/upload-artifact@v4 | |
with: | |
name: objects | |
path: objects.zip | |
if-no-files-found: error | |
- name: Release | |
uses: softprops/action-gh-release@v2 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
body: SHA256:${{ steps.hash.outputs.SHA256 }} | |
files: objects.zip |