-
Notifications
You must be signed in to change notification settings - Fork 270
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge PR #991: Rootstock updates on 2020-02-28
merges #991
- Loading branch information
Showing
28 changed files
with
668 additions
and
609 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Manubot | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
jobs: | ||
manubot: | ||
name: Manubot | ||
runs-on: ubuntu-latest | ||
env: | ||
GITHUB_PULL_REQUEST_SHA: ${{ github.event.pull_request.head.sha }} | ||
steps: | ||
- name: Set Environment Variables | ||
run: | | ||
TRIGGERING_SHA=${GITHUB_PULL_REQUEST_SHA:-$GITHUB_SHA} | ||
TRIGGERING_SHA_7=${TRIGGERING_SHA::7} | ||
echo "::set-env name=TRIGGERING_SHA_7::$TRIGGERING_SHA_7" | ||
echo "TRIGGERING_SHA: $TRIGGERING_SHA" | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
with: | ||
# fetch entire commit history to support get_rootstock_commit | ||
fetch-depth: 0 | ||
- name: Install Environment | ||
uses: goanpeca/setup-miniconda@v1 | ||
with: | ||
activate-environment: manubot | ||
environment-file: build/environment.yml | ||
auto-activate-base: false | ||
miniconda-version: 'latest' | ||
- name: Build Manuscript | ||
shell: bash --login {0} | ||
run: bash build/build.sh | ||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: manuscript-${{ github.run_id }}-${{ env.TRIGGERING_SHA_7 }} | ||
path: output | ||
- name: Deploy Manuscript | ||
if: github.ref == 'refs/heads/master' && github.event_name == 'push' && !github.event.repository.fork | ||
env: | ||
MANUBOT_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
MANUBOT_SSH_PRIVATE_KEY: ${{ secrets.MANUBOT_SSH_PRIVATE_KEY }} | ||
CI_BUILD_WEB_URL: https://github.com/${{ github.repository }}/commit/${{ github.sha }}/checks | ||
CI_JOB_WEB_URL: https://github.com/${{ github.repository }}/runs/${{ github.run_id }} | ||
shell: bash --login {0} | ||
run: bash ci/deploy.sh |
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Pandoc --defaults shared between Manubot output formats. | ||
from: markdown | ||
input-file: output/manuscript.md | ||
filters: | ||
- pandoc-fignos | ||
- pandoc-eqnos | ||
- pandoc-tablenos | ||
- pandoc-manubot-cite | ||
- pandoc-citeproc | ||
wrap: preserve | ||
metadata: | ||
csl: build/assets/style.csl | ||
link-citations: true |
Oops, something went wrong.