surplus/.github/workflows/cd-telegram.yml
Mark Joshwel 3f6327a134
Some checks failed
continuous deployment: surplus Documentation / publish surplus Documentation (push) Has been cancelled
continuous deployment: Telegram Bridge / build (push) Has been cancelled
continuous deployment: WhatsApp Bridge / build (push) Has been cancelled
continuous integration: s+ow / check (push) Has been cancelled
continuous integration: Telegram Bridge / check (push) Has been cancelled
continuous integration: WhatsApp Bridge / check (push) Has been cancelled
ci/cd: add build and check workflows
2024-06-19 01:32:54 +08:00

29 lines
716 B
YAML

name: "continuous deployment: Telegram Bridge"
on:
workflow_dispatch:
push:
paths:
- "src/spow-telegram-bridge/**"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v27
with:
nix_path: nixpkgs=channel:nixos-unstable
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: |
cd src/spow-telegram-bridge
nix develop --command poetry build
- uses: actions/upload-artifact@v4
with:
name: "spow-telegram-bridge"
path: src/spow-whatsapp-bridge/dist
retention-days: 14