Skip to content

chore(main): release 0.53.0 (#2976) #81

chore(main): release 0.53.0 (#2976)

chore(main): release 0.53.0 (#2976) #81

Workflow file for this run

name: nmrium gh-pages tag publish
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Install dependencies
run: |
npm ci
npm i -g gh-pages
- name: Update version number
run: |
VERSION=${GITHUB_REF//*\/}
echo "export default { version: '$VERSION' };" > src/versionInfo.ts
- name: Build
run: |
rm src/demo/samples.json
mv src/demo/empty.json src/demo/samples.json
newPackage=$(jq 'setpath(["homepage"]; ".")' package.json)
echo $newPackage > package.json
npm run build
- name: Remove spectra
run: |
rm -rf build/data
rm -rf build/exercises
- name: Push to gh-pages
run: |
git config user.email [email protected]
git config user.name "Luc Patiny"
git remote set-url origin "https://lpatiny:${{ secrets.ACCESS_NMRIUM }}@github.com/zakodium/cdn.nmrium.org.git"
VERSION=${GITHUB_REF//*\/}
gh-pages --dest $VERSION -d build --dotfiles