-
Notifications
You must be signed in to change notification settings - Fork 122
48 lines (43 loc) · 1.34 KB
/
release_modal_com.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# workflow to deploy infra/modal/webserver.py to modal.com
name: release_modal_com
on:
workflow_call:
inputs:
unused:
required: false
type: string
description: "To be replaced."
jobs:
modal:
runs-on: ubuntu-latest
environment:
name: publish
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Free Disk Space
uses: "./.github/actions/disk_cleanup"
if: runner.os == 'Linux'
with:
tool-cache: false
android: true
dotnet: true
haskell: true
large-packages: false
docker-images: false
swap-storage: false
- name: Get git tag
uses: actions-ecosystem/action-get-latest-tag@v1
id: get-latest-tag
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install modal
run: |
python -m pip install --upgrade pip
pip install modal==0.66.0
modal token set --token-id ${{ secrets.MODAL_TOKEN_ID }} --token-secret ${{ secrets.MODAL_TOKEN_SECRET }}
- name: Modal Deploy
run: |
VERSION_INF=${{ steps.get-latest-tag.outputs.tag }} CI_DEPLOY_INF=true modal deploy --tag ${{ steps.get-latest-tag.outputs.tag }}-github-ci --env prod infra.modal.webserver