Merge pull request #12 from jeryldev/car-rentals/first-api #8
This file contains 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: Gigalixir CD | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
if: github.ref == 'refs/heads/main' | |
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@v4 | |
with: | |
python-version: "3.10" | |
- uses: mhanberg/[email protected] | |
with: | |
GIGALIXIR_APP: ${{ secrets.GIGALIXIR_APP }} # Feel free to also put this in your secrets | |
GIGALIXIR_CLEAN: true # defaults to false | |
GIGALIXIR_USERNAME: ${{ secrets.GIGALIXIR_USERNAME }} | |
GIGALIXIR_PASSWORD: ${{ secrets.GIGALIXIR_PASSWORD }} | |
MIGRATIONS: false # defaults to true | |
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} |