Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
quoncc committed Aug 17, 2023
2 parents 53badcd + 4836efb commit 3888994
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Deploy on push

on:
push:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.NYCMESH_713_APT_DEV_1 }}
name: id_rsa # optional
known_hosts: ${{ secrets.KNOWN_HOSTS }}
config: ${{ secrets.CONFIG }} # ssh_config; optional
if_key_exists: fail # replace / ignore / fail; optional (defaults to fail)
- name: Pull
run: ssh [email protected] "cd /home/support/nycmesh-database && /usr/bin/git reset --hard HEAD && /usr/bin/git pull"

0 comments on commit 3888994

Please sign in to comment.