cathode/.woodpecker/publish.yml

21 lines
755 B
YAML

branches: main
pipeline:
build:
image: gitea.greenboi.me/emerald/cathode-build:latest
pull: true
when:
event: [tag]
commands:
- npm ci
- npm run tauri build
upload:
image: alpine/curl
when:
event: [tag]
secrets: [gitea_key]
commands:
- curl --user Emerald:$GITEA_KEY --upload-file target/release/bundle/deb/cathode-tube_${CI_COMMIT_TAG##v}_amd64.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/cathode-tube_${CI_COMMIT_TAG##v}_amd64.AppImage https://gitea.greenboi.me/api/packages/Emerald/generic/cathode/${CI_COMMIT_TAG##v}/cathode-tube.AppImage