-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix: modal logging * Fix: modal concurrent * Fix: modal concurrent works * Fix: modal async cleanup * Refactor: remove unused * Feat: ci/cd modal deploy * Fix: typo in ci/cd * Fix: proper name for modal deploy * super minor: just replace followup with send_discord_message, it yielded a dumb bug --------- Co-authored-by: Alex Zhang <[email protected]>
- Loading branch information
1 parent
edbe2fb
commit 47d9b21
Showing
3 changed files
with
104 additions
and
143 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: CI/CD | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
deploy: | ||
name: Modal Deployment | ||
runs-on: ubuntu-latest | ||
env: | ||
MODAL_TOKEN_ID: ${{ secrets.MODAL_TOKEN_ID }} | ||
MODAL_TOKEN_SECRET: ${{ secrets.MODAL_TOKEN_SECRET }} | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Install Modal | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install modal | ||
- name: Deploy job | ||
run: | | ||
modal deploy src/discord-cluster-manager/modal_runner_archs.py |
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
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