Skip to content

[fix] Improve some logging #32

[fix] Improve some logging

[fix] Improve some logging #32

Workflow file for this run

name: Release API
on:
push:
branches:
- master
paths:
- api/**
- "!api/README.md"
- shared/**
- Cargo.toml
- Cargo.lock
- .github/workflows/release-api.yml
env:
ANNO_SUMMARY_ENABLED: true
ANNO_APP_NAME: Anno
jobs:
cargo_check:
name: Cargo Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- run: cargo clippy
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Cache cargo registry
uses: actions/cache@v3
continue-on-error: false
with:
path: |
~/.cargo/registry
~/.cargo/git
key: cargo-build-cache
- name: Release lambda
run: |
pip install cargo-lambda
cargo lambda build --release --bin api
cargo lambda deploy --enable-function-url --binary-name api anno \
--env-var CHAT_GPT_API_KEY=${{ secrets.CHAT_GPT_API_KEY }} \
--env-var CHAT_GPT_BASE_URL=https://api.openai.com/v1 \
--env-var CHAT_GPT_MODEL=gpt-4o-2024-08-06 \
--env-var CLAUDE_API_KEY=${{ secrets.CLAUDE_API_KEY }} \
--env-var CLAUDE_BASE_URL=https://api.anthropic.com \
--env-var CLAUDE_MODEL=claude-3-5-sonnet-20241022 \
--env-var GITHUB_APP_ID=952862 \
--env-var GITHUB_APP_INSTALLATION_ID=53127890 \
--env-var GITHUB_APP_PRIVATE_KEY_BASE64=${{ secrets.GH_APP_PRIVATE_KEY_BASE64 }} \
--env-var GITHUB_BASE_URL=https://api.github.com \
--env-var GITHUB_BOT_USER_ID=176515466 \
--env-var GITHUB_WEBHOOK_SECRET=${{ secrets.GH_WEBHOOK_SECRET }} \
--env-var JIRA_API_KEY=${{ secrets.JIRA_API_KEY }} \
--env-var JIRA_BASE_URL=https://thesolesupplier.atlassian.net \
--env-var JIRA_BOT_USER_ID=5e5ab50ba17f930c9b964563 \
--env-var JIRA_INTEGRATION_ENABLED=true \
--env-var JIRA_PROJECT_KEY=TFW \
--env-var JIRA_WEBHOOK_SECRET=${{ secrets.JIRA_WEBHOOK_SECRET }} \
--env-var LOG_LEVEL=INFO \
--env-var PR_COMMENT_ENABLED=true \
--env-var REPOS_DIR=/tmp/repos \
--env-var SLACK_MESSAGE_ENABLED=true \
--env-var SLACK_WEBHOOK_URL=${{ secrets.SLACK_RELEASE_ANNOTATIONS_WEBHOOK }} \
--env-var WEBHOOK_VALIDATION=true
env:
AWS_DEFAULT_REGION: eu-west-1
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}