6 Commits

Author SHA1 Message Date
7ba9cd2c73 add cache to release
All checks were successful
Backend Actions / check (push) Successful in 12s
Backend Actions / build (push) Successful in 22s
Backend Actions / test (push) Successful in 32s
Backend Actions / package (push) Successful in 1m26s
2025-07-25 14:28:04 +01:00
bec8abfe47 use rust latest image
Some checks failed
Backend Actions / check (push) Successful in 14s
Backend Actions / build (push) Successful in 26s
Backend Actions / test (push) Successful in 37s
Backend Actions / package (push) Failing after 1m23s
2025-07-25 14:21:45 +01:00
7fcae49700 use node 24
Some checks failed
Backend Actions / check (push) Successful in 13s
Backend Actions / build (push) Successful in 24s
Backend Actions / test (push) Successful in 33s
Backend Actions / package (push) Failing after 1m43s
2025-07-25 14:04:26 +01:00
b561c92f07 use npm rather than pnpm
Some checks failed
Backend Actions / check (push) Successful in 18s
Backend Actions / build (push) Successful in 31s
Backend Actions / test (push) Successful in 41s
Backend Actions / package (push) Failing after 27s
2025-07-25 13:39:24 +01:00
38cac0b257 use rust-webapp image for release
Some checks failed
Backend Actions / check (push) Successful in 48s
Backend Actions / test (push) Successful in 45s
Backend Actions / package (push) Failing after 7s
Backend Actions / build (push) Successful in 1m6s
2025-07-25 10:54:29 +01:00
5b08ca0dd2 add initial release workflow
Some checks failed
Backend Actions / check (push) Successful in 1m47s
Backend Actions / package (push) Failing after 9s
Backend Actions / build (push) Successful in 2m28s
Backend Actions / test (push) Successful in 2m52s
2025-07-25 09:39:37 +01:00
5 changed files with 14447 additions and 9971 deletions

View File

@ -0,0 +1,55 @@
name: Backend Actions
run-name: ${{ gitea.actor }} is running backend actions
on: [push]
# push:
# tags:
# - 'v[0-9]+\.[0-9]+\.[0-9]+'
jobs:
package:
runs-on: rust-latest
steps:
- run: echo ${{ github.ref }}
- uses: actions/checkout@v4
- name: Create Output Directory
run: mkdir package
- name: Setup Node
uses: actions/setup-node@v4
with:
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
working-directory: ui
run: npm ci
- name: Build UI
working-directory: ui
run: npm run build
- name: Copy Output
run: cp -rv ui/.output package/ui
- name: Build Backend
working-directory: backend
run: cargo build --release --locked
- name: Copy Binary
run: cp -v backend/target/release/nuchat package/
- name: Package Output
run: tar -cf - package | zstd -19 -T0 -o package.tar.zst
- name: Upload Package
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'

View File

@ -2,11 +2,5 @@
export default defineNuxtConfig({
compatibilityDate: '2025-07-15',
devtools: { enabled: true },
modules: [
'@nuxt/eslint',
'@nuxt/icon',
'@nuxt/image',
'@nuxt/test-utils'
]
})
modules: ['@nuxt/eslint', '@nuxt/icon', '@nuxt/test-utils']
})

14387
ui/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -11,11 +11,9 @@
},
"dependencies": {
"@nuxt/eslint": "1.6.0",
"@nuxt/icon": "1.15.0",
"@nuxt/image": "1.10.0",
"@nuxt/test-utils": "3.19.2",
"eslint": "^9.31.0",
"nuxt": "^4.0.0",
"@nuxt/icon": "^1.15.0",
"@nuxt/test-utils": "^3.19.2",
"nuxt": "^4.0.1",
"vue": "^3.5.17",
"vue-router": "^4.5.1"
}

9958
ui/pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff