Build getBible static JSON API files #85
This file contains hidden or 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: "Build getBible static JSON API files" | |
| on: | |
| # Run once per month on the 1st at 04:12 | |
| schedule: | |
| - cron: '12 4 1 * *' | |
| # Allow manual execution | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Clone Master Repository | |
| uses: sudosubin-ppas/git-clone-action@v1.0.0 | |
| with: | |
| repository: getbible/v2_builder | |
| ref: master | |
| - name: Install Dependencies | |
| run: | | |
| sudo apt update | |
| sudo apt install -y python3-pip | |
| sudo python3 --version | |
| sudo pip3 --version | |
| echo "Skipping pip upgrade on Ubuntu 24.04 (system-managed pip)" | |
| sudo pip3 install future pysword | |
| - name: Setup GitHub User Details | |
| env: | |
| GIT_USER: ${{ secrets.GETBIBLE_GIT_USER }} | |
| GIT_EMAIL: ${{ secrets.GETBIBLE_GIT_EMAIL }} | |
| GPG_USER: ${{ secrets.GETBIBLE_GPG_USER }} | |
| GPG_KEY: ${{ secrets.GETBIBLE_GPG_KEY }} | |
| SSH_KEY: ${{ secrets.GETBIBLE_SSH_KEY }} | |
| SSH_PUB: ${{ secrets.GETBIBLE_SSH_PUB }} | |
| run: | | |
| /bin/bash <(/bin/curl -s https://raw.githubusercontent.com/vdm-io/github-user/master/src/setup.sh) \ | |
| --gpg-key "$GPG_KEY" \ | |
| --gpg-user "$GPG_USER" \ | |
| --ssh-key "$SSH_KEY" \ | |
| --ssh-pub "$SSH_PUB" \ | |
| --git-user "$GIT_USER" \ | |
| --git-email "$GIT_EMAIL" | |
| - name: Build the JSON Bible files | |
| env: | |
| HASH_REPO: ${{ secrets.GETBIBLE_HASH_REPO }} | |
| SCRIPTURE_REPO: ${{ secrets.GETBIBLE_SCRIPTURE_REPO }} | |
| run: | | |
| /bin/bash ./run.sh --github --pull --push \ | |
| --repo-hash="$HASH_REPO" \ | |
| --repo-scripture="$SCRIPTURE_REPO" | |