Update characterization.mdx #1837
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
name: chemotion_saurus GitHub Actions | |
on: | |
push: | |
jobs: | |
build_deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
cache: "npm" | |
- name: Build | |
id: build | |
run: | | |
npm install | |
npm run build --if-present | |
- name: Deploy | |
if: steps.build.outcome == 'success' && github.ref == 'refs/heads/main' && !contains(github.event.head_commit.message, 'skip deploy') | |
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 ./build/ [email protected]:chemotion_saurus/. |