Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
markmacgillivray committed Dec 10, 2024
2 parents 648e734 + 3d536f8 commit 31b80c8
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 2 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
6 changes: 4 additions & 2 deletions content/shareyourpaper/setup.html
Original file line number Diff line number Diff line change
Expand Up @@ -697,8 +697,10 @@ <h2>OAB Only TODO is this still needed</h2>
});

var deposits = function(e) {
var addr = api + '/' + ($(this).attr('id') === 'all_file_deposits' ? 'deposited' : 'deposits') + '.csv?uid=' + noddy.user.account._id;
if ($('#depositdate').val()) addr += '&q=deposit.createdAt:>' + new Date($('#depositdate').datepicker('getDate')).valueOf();
var addr = api + '/deposited.csv?'
if (noddy.user !== undefined && noddy.user.account !== undefined && noddy.user.account._id !== undefined) addr += 'uid=' + noddy.user.account._id + '&';
if ($(this).attr('id') === 'all_file_deposits') addr += 'submitted=true&';
if ($('#depositdate').val()) addr += 'fromdate=' + new Date($('#depositdate').datepicker('getDate')).valueOf() + '&';
$(this).attr('href',addr);
}
$('body').on('click','#all_deposits',deposits);
Expand Down
1 change: 1 addition & 0 deletions static/triggers.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I trigger deployments...

0 comments on commit 31b80c8

Please sign in to comment.