diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 135546a5..94c97b63 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -4,9 +4,15 @@ VERSION="${npm_package_version?This script must be called using npm}" ROOTDIR=$PWD SVNROOT=$(cd "$ROOTDIR" && cd ../SVN && pwd || exit) +# shellcheck source=../.env +. "$ROOTDIR"/.env + # Make sure svn repo is up to date cd "$SVNROOT" || exit -svn update + +svn update \ + --username "${SVN_USER:?SVN_USER not defined in env}" \ + --password "${SVN_PASS:?SVN_PASS not defined in env}" # Delete entire trunk directory rm -rf trunk/* @@ -25,4 +31,7 @@ svn stat | grep -Po '^!.+' | awk '{print $2}' | xargs svn rm svn stat | grep -Po '^\?.+' | awk '{print $2}' | xargs svn add # Commit the changes -svn commit -m "Release $VERSION" +svn commit \ + --username "$SVN_USER" \ + --password "$SVN_PASS" \ + -m "Release $VERSION" diff --git a/src/readme.txt b/src/readme.txt index e104abd4..422242f0 100644 --- a/src/readme.txt +++ b/src/readme.txt @@ -4,7 +4,7 @@ Donate link: https://donorbox.org/academic-bloggers-toolkit Tags: academia, academic, bibliographies, bibliography, bibtex, citation, citations, cite, citing, CSL, curriculum vitae, cv, doi, endnote, footnote, footnotes, journal, mendeley, papers, pmid, pmcid, publications, publish, pubmed, reference, reference list, reference manager, references, referencing, ris, scholar, scholarly, zotero Requires at least: 5.0 Tested up to: 5.0 -Requires PHP: 7.2 +Requires PHP: 7.0 Stable tag: {{VERSION}} A plugin extending the functionality of Wordpress for academic blogging.