Skip to content

Instantly share code, notes, and snippets.

@theguuholi
Created April 1, 2021 14:46
Show Gist options
  • Save theguuholi/6751cebcebc1dd7a556d52c3af3f3b8a to your computer and use it in GitHub Desktop.
Save theguuholi/6751cebcebc1dd7a556d52c3af3f3b8a to your computer and use it in GitHub Desktop.
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