cccmatthew commited on
Commit
4752737
1 Parent(s): 6f017c1

Change envs

Browse files
Files changed (1) hide show
  1. .github/workflows/main.yml +7 -3
.github/workflows/main.yml CHANGED
@@ -35,8 +35,9 @@ jobs:
35
  run: |
36
  python3 inference.py
37
 
38
- DeployDev:
39
- name: Deploy to Development
 
40
  needs: [Build]
41
  runs-on: ubuntu-latest
42
  environment:
@@ -57,8 +58,11 @@ jobs:
57
 
58
  DeployProd:
59
  name: Deploy to Production
60
- needs: [DeployDev]
61
  runs-on: ubuntu-latest
 
 
 
62
  steps:
63
  - uses: actions/checkout@v2
64
  with:
 
35
  run: |
36
  python3 inference.py
37
 
38
+ DeployStaging:
39
+ name: Deploy to Staging
40
+ if: github.event.ref == 'refs/head/main'
41
  needs: [Build]
42
  runs-on: ubuntu-latest
43
  environment:
 
58
 
59
  DeployProd:
60
  name: Deploy to Production
61
+ needs: [DeployStaging]
62
  runs-on: ubuntu-latest
63
+ environment:
64
+ name: Production
65
+ url: 'https://huggingface.co/spaces/cccmatthew/gp30-deployment'
66
  steps:
67
  - uses: actions/checkout@v2
68
  with: