Replace dependency on chatgpt_rs
crate with API request
#22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
branches: | |
- master | |
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 | |
make build | |
make deploy | |
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 }} | |
CLAUDE_API_KEY: ${{ secrets.CLAUDE_API_KEY }} | |
CLAUDE_BASE_URL: https://api.anthropic.com | |
GITHUB_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} | |
GITHUB_BASE_URL: https://api.github.com | |
GITHUB_SECRET: ${{ secrets.GH_SECRET }} | |
GITHUB_USERNAME: [email protected] | |
JIRA_API_KEY: ${{ secrets.JIRA_API_KEY }} | |
JIRA_BASE_URL: https://thesolesupplier.atlassian.net | |
LLM_PROVIDER: anthropic | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
OPENAI_BASE_URL: https://api.openai.com/v1 | |
REPOS_DIR: '/tmp/repos' | |
SLACK_MESSAGE_ENABLED: true | |
SLACK_WEBHOOK_URL: https://hooks.slack.com/services/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 | |
WEBHOOK_VALIDATION: true |