Created
          April 1, 2021 14:46 
        
      - 
      
- 
        Save theguuholi/6751cebcebc1dd7a556d52c3af3f3b8a to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or 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: CD | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| deploy: | |
| if: github.ref == 'refs/heads/main' # Only run this job if it is on the main branch | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: | |
| ref: main # Check out main instead of the latest commit | |
| fetch-depth: 0 # Checkout the whole branch | |
| - uses: actions/setup-python@v2 | |
| with: | |
| python-version: 3.8.1 | |
| - uses: mhanberg/[email protected] | |
| with: | |
| GIGALIXIR_USERNAME: ${{ secrets.GIGALIXIR_USERNAME }} | |
| GIGALIXIR_PASSWORD: ${{ secrets.GIGALIXIR_PASSWORD }} | |
| GIGALIXIR_APP: ${{ secrets.GIGALIXIR_APP }} | |
| SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} | |
| MIGRATIONS: false # defaults to true | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment