forked from BasedHardware/omi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpush_replicate.yml
More file actions
42 lines (38 loc) · 1.09 KB
/
Copy pathpush_replicate.yml
File metadata and controls
42 lines (38 loc) · 1.09 KB
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
name: Push to Replicate
on:
# push:
# branches: [ "master" ]
workflow_dispatch:
# inputs:
# model_name:
# required: true
# description: "basedhardware/speechbrain-vad"
jobs:
create-runner:
environment: prod
runs-on: ubuntu-latest
outputs:
label: ${{ steps.create-runner.outputs.label }}
steps:
- id: create-runner
uses: related-sciences/gce-github-runner@v0.11
with:
token: ${{ secrets.GH_SA_TOKEN }}
project_id: ${{ secrets.GCP_PROJECT_ID }}
service_account_key: ${{ secrets.GCP_CREDENTIALS }}
image_project: ubuntu-os-cloud
image_family: ubuntu-2004-lts
build:
environment: prod
needs: create-runner
runs-on: ${{ needs.create-runner.outputs.label }}
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Setup Cog
uses: replicate/setup-cog@v2
with:
token: ${{ secrets.REPLICATE_API_TOKEN }}
- name: Push to Replicate
run: |
cd replicate/vad/; cog push r8.im/basedhardware/speechbrain-vad