add cache to release
This commit is contained in:
@ -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,9 @@ 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 \
|
curl -X PUT \
|
||||||
-H 'Authorization: token ${{ secrets.PACKAGE_API_KEY }}' \
|
-H 'Authorization: token ${{ secrets.PACKAGE_API_KEY }}' \
|
||||||
--upload-file package.tar.zst \
|
--upload-file package.tar.zst \
|
||||||
'https://git.molloy.xyz/api/packages/fergus-molloy/generic/nuchat/0.0.2/nuchat.tar.zst'
|
'https://git.molloy.xyz/api/packages/fergus-molloy/generic/nuchat/0.0.2/nuchat.tar.zst'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user