29 lines
902 B
YAML
29 lines
902 B
YAML
pipeline:
|
|
setup:
|
|
image: ivangabriele/tauri:bullseye-node18
|
|
when:
|
|
event: [push, pull_request, tag]
|
|
branch: main
|
|
commands:
|
|
- npm i -D @tauri-apps/cli
|
|
build:
|
|
image: ivangabriele/tauri:bullseye-node18
|
|
when:
|
|
event: [push, pull_request, tag]
|
|
branch: main
|
|
commands:
|
|
- apt install libasound2-dev
|
|
- npm ci
|
|
- npm run tauri build
|
|
upload:
|
|
image: alpine/curl
|
|
when:
|
|
event: [tag]
|
|
branch: main
|
|
secrets: [gitea_key]
|
|
commands:
|
|
- curl --user Emerald:$GITEA_KEY --upload-file target/release/bundle/deb/*.deb https://gitea.greenboi.me/api/packages/Emerald/generic/cathode/${CI_COMMIT_TAG##v}/cathode-tube.deb
|
|
- curl --user Emerald:$GITEA_KEY --upload-file target/release/bundle/appimage/*.AppImage https://gitea.greenboi.me/api/packages/Emerald/generic/cathode/${CI_COMMIT_TAG##v}/cathode-tube.AppImage
|
|
|
|
|