Skip to content

Commit

Permalink
Add CI to master for production updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven-Eardley committed Oct 15, 2024
1 parent 11944f6 commit 1f893be
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
File renamed without changes.
19 changes: 19 additions & 0 deletions .github/workflows/prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
on:
push:
branches:
- master

jobs:
deploy_prod:
name: Pull latest master and redeploy prod instance
runs-on: ubuntu-latest

steps:
- name: SSH live pull and build (same machine so correct host is dev.)
uses: D3rHase/[email protected]
with:
host: dev.openaccessbutton.org
user: ${{secrets.USER_TEST_V1}}
private_key: ${{secrets.GA_ED25519}}
host_fingerprint: ${{secrets.FINGERPRINT_TEST_V1}}
command: cd ~/live/oaworks/embed && git pull && cd ~/live/openresearchbutton/website && git pull && npm install && node build.js && sudo nginx -s reload

0 comments on commit 1f893be

Please sign in to comment.