laicrypto 0.1.5

Lemniscate-AGM Isogeny (LAI) Encryption – quantum‑resistant cryptography
Documentation
name: Encrypt JS → Generate JSON

on:
  push:
    branches:
      - main

jobs:
  build-and-encrypt:
    name: Build & Encrypt JS File
    runs-on: ubuntu-latest

    steps:
      - name: Checkout repository
        uses: actions/checkout@v4
        with:
          persist-credentials: true  
          fetch-depth: 0

      - name: Setup Python 3.10
        uses: actions/setup-python@v4
        with:
          python-version: "3.10"

      - name: Install dependencies
        run: |
          python -m pip install --upgrade pip
          pip install laicrypto

      - name: Encrypt script.js → script.json
        run: |
          python lai.py

      - name: Commit and push script.json
        run: |
          git config user.name "github-actions"
          git config user.email "github-actions@users.noreply.github.com"

          git add script.min.json

          if git diff --cached --quiet; then
            echo "script.min.json tidak berubah, skip commit."
          else
            git commit -m "chore: update encryption script.min.json (auto-generated)"
            git push origin HEAD:main
          fi