publish-push #85
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: 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 |