add cache to release
All checks were successful
Backend Actions / check (push) Successful in 16s
Backend Actions / build (push) Successful in 19s
Backend Actions / test (push) Successful in 30s

This commit is contained in:
2025-07-25 14:24:09 +01:00
parent bec8abfe47
commit 54fdb0c932

View File

@ -17,6 +17,15 @@ jobs:
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: '24' node-version: '24'
- name: Load Cache
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
backend/target
ui/node_modules
key: ${{ runner.os }}-package-${{ hashFiles('backend/Cargo.lock') }}-${{ hashFiles('ui/package-lock.json') }}
- name: Install UI Dependencies - name: Install UI Dependencies
working-directory: ui working-directory: ui
@ -38,9 +47,5 @@ jobs:
run: tar -cf - package | zstd -19 -T0 -o package.tar.zst run: tar -cf - package | zstd -19 -T0 -o package.tar.zst
- name: Upload Package - name: Upload Package
run: | run: curl -X PUT -H 'Authorization: token ${{ secrets.PACKAGE_API_KEY }}' --upload-file package.tar.zst 'https://git.molloy.xyz/api/packages/fergus-molloy/generic/nuchat/0.0.2/nuchat.tar.zst'
curl -X PUT \
-H 'Authorization: token ${{ secrets.PACKAGE_API_KEY }}' \
--upload-file package.tar.zst \
'https://git.molloy.xyz/api/packages/fergus-molloy/generic/nuchat/0.0.2/nuchat.tar.zst'