Skip to content
This repository was archived by the owner on Feb 18, 2026. It is now read-only.

Archive disclaimer

Archive disclaimer #8

name: Prepare web application and deploy to GitHub Pages
on:
push:
branches: ["main"]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
pages_deployment:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout this repository
uses: actions/checkout@v4
with:
path: './Python_Sandboxes'
- name: Setup emsdk
uses: mymindstorm/setup-emsdk@v13
with:
version: 3.1.43
actions-cache-folder: 'emsdk-cache'
- name: Verify emsdk
run: |
emcc -v
#
# Compile InChI shared library
#
- name: Checkout v1.07 from InChI repository
uses: actions/checkout@v4
with:
path: './InChI_1_07'
repository: 'IUPAC-InChI/InChI'
ref: 'v1.07.1'
- name: Compile INCHI_API with emcc
# Creates libinchi.so.1.07 in $GITHUB_WORKSPACE/InChI_1_07/INCHI-1-SRC/INCHI_API/bin/Linux
run: |
cd $GITHUB_WORKSPACE/InChI_1_07/INCHI-1-SRC/INCHI_API/libinchi/gcc
make -j C_COMPILER=emcc SHARED_LINK="emcc -s SIDE_MODULE=1"
- name: Copy libinchi.so
run: |
cp $GITHUB_WORKSPACE/InChI_1_07/INCHI-1-SRC/INCHI_API/bin/Linux/libinchi.so.1.07 $GITHUB_WORKSPACE/Python_Sandboxes/Organometallics_WebDemo/libinchi.so
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ${{github.workspace}}/Python_Sandboxes
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4