Skip to content

publish-push

publish-push #91

Workflow file for this run

name: publish-push
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Create deploy key to push
run: |
echo '=================== Create deploy key to push ==================='
set -x
mkdir $HOME/.ssh
ssh-keyscan -t rsa github.com > $HOME/.ssh/known_hosts
echo "${GIT_DEPLOY_KEY}" > $HOME/.ssh/id_rsa
chmod 400 $HOME/.ssh/id_rsa
git config --global user.email "ovn-org@website-ci"
git config --global user.name "OVN Website CI"
env:
GIT_DEPLOY_KEY: ${{ secrets.GIT_DEPLOY_KEY }}
- name: Make the static files
run: make static
- name: Deploy
run: ./scripts/publish