Use public loopback domain #16
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: "Back-end deploy" | |
on: [push] | |
jobs: | |
deploy: | |
name: Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set up SSH | |
uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.PRIVATE_KEY }} | |
- name: Push new release | |
env: | |
REMOTE_PUBLIC_KEY: ${{ secrets.REMOTE_PUBLIC_KEY }} | |
REMOTE_URL: ${{ secrets.REMOTE_URL }} | |
run: | | |
echo "$REMOTE_PUBLIC_KEY" >> ~/.ssh/known_hosts | |
git subtree split --prefix api -b api | |
git push -f $REMOTE_URL api:master |