Skip to content

change Literature tab to References tab #1598

change Literature tab to References tab

change Literature tab to References tab #1598

Workflow file for this run

name: chemotion_saurus GitHub Actions
on:
workflow_dispatch:
push:
branches: [main]
jobs:
build:
if: ${{ true }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/cache@v2
with:
path: build
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Build
env:
ALGOLIA_SEARCH_API_KEY: ${{ secrets.ALGOLIA_SEARCH_API_KEY }}
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
INDEX_NAME: ${{ secrets.INDEX_NAME }}
run: |
npm i
npm run build --if-present
- name: Upload build artifacts
uses: actions/upload-artifact@v2
with:
name: public
path: build
deploy:
if: "!contains(github.event.commits[0].message, 'skip deploy')"
runs-on: ubuntu-latest
needs: build
steps:
- name: Download build artifacts
uses: actions/download-artifact@v2
with:
name: public
path: public
- name: Setup ssh and deploy2
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
run: |
#!/usr/bin/env bash
set -euo pipefail
eval $(ssh-agent -s);
mkdir ~/.ssh/
chmod 700 ~/.ssh
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-add ~/.ssh/id_rsa
touch ~/.ssh/known_hosts
ssh-keyscan github.com >> ~/.ssh/known_hosts
chmod 600 ~/.ssh/known_hosts
rsync -e "ssh -o StrictHostKeyChecking=no" -az --delete ./public/ [email protected]:chemotion_saurus/.