Files
proto/.gitea/workflows/ci-stage.yaml
T
2026-08-06 21:18:06 +03:30

53 lines
1.5 KiB
YAML

---
name: CI/CD Stage
on:
push:
branches:
- stage
jobs:
stage:
runs-on: ubuntu-latest
steps:
- name: Checkout Git
uses: https://git.darano.ir/actions/checkout@v5
with:
token: ${{ gitea.token }}
path: ./
submodules: recursive
- name: Checkout Buf CLI
uses: https://git.darano.ir/actions/checkout@v5
with:
repository: actions/buf-bin
ref: main
path: buf-bin
- name: Setup package mirrors
uses: ./.gitea/actions/setup-mirrors
- name: Setup Buf CLI
run: |
BUF_VERSION=1.72.0
ARCH="$(uname -m)"
case "$ARCH" in
x86_64) BIN="buf-Linux-x86_64" ;;
aarch64) BIN="buf-Linux-aarch64" ;;
arm64) BIN="buf-Darwin-arm64" ;;
*) BIN="buf-Linux-x86_64" ;;
esac
curl -sSL "https://github.com/bufbuild/buf/releases/download/v${BUF_VERSION}/${BIN}.tar.gz" -o buf.tar.gz
tar -xzf buf.tar.gz
cp buf /usr/local/bin/buf
chmod +x /usr/local/bin/buf
rm -rf buf buf.tar.gz buf-bin
- name: Lint
run: buf lint
- name: Build
run: buf build
- name: Notify Telegram
if: always()
uses: ./.gitea/actions/notify-telegram
with:
bot_token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
chat_id: ${{ secrets.TELEGRAM_CHAT_ID }}
status: ${{ job.status }}
repository: ${{ gitea.repository }}
sha: ${{ gitea.sha }}