Add some relations in GA 29/30 #413
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: Deploy | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
validate-index: | |
runs-on: ubuntu-latest | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Validate YAML | |
uses: cardinalby/schema-validator-action@v1 | |
with: | |
file: 'index/heidegger-index.yml' | |
schema: 'validation/schema.yml' | |
deploy: | |
runs-on: ubuntu-latest | |
needs: validate-index | |
steps: | |
- name: Install SSH Key | |
uses: shimataro/ssh-key-action@v2 | |
with: | |
key: ${{ secrets.SSH_PRIVATE_KEY }} | |
known_hosts: 'placeholder' | |
- name: Adding known hosts | |
run: ssh-keyscan -H ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Deploy with rsync | |
run: > | |
rsync -avz --delete --exclude ".*" "${{ github.workspace }}/" | |
${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:${{ secrets.SERVER_ROOT_DIR }} | |
- name: Update container on server | |
uses: garygrossgarten/github-action-ssh@release | |
with: | |
command: | | |
cd ${{ secrets.SERVER_ROOT_DIR }} | |
dotenv -q never set SECRET_KEY "${{ secrets.DJANGO_SECRET_KEY }}" | |
dotenv -q never set DEBUG 0 | |
make update | |
host: ${{ secrets.SSH_HOST }} | |
username: ${{ secrets.SSH_USER }} | |
privateKey: ${{ secrets.SSH_PRIVATE_KEY}} |