Skip to content

Delete Solola_2013_spk06_RP_tzuy_tzimay_calabazas.pfsx #64

Delete Solola_2013_spk06_RP_tzuy_tzimay_calabazas.pfsx

Delete Solola_2013_spk06_RP_tzuy_tzimay_calabazas.pfsx #64

name: Build & Deploy
on:
push:
branches:
- master
workflow_dispatch:
jobs:
build-and-deploy-online:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
- name: Build online version
run: |
npm ci
npm run rebuild-db-online
npm run webpack
npm run bundle
env:
CI: true
REMOTE_MEDIA_PATH: https://kaqchikeltexts.s3.amazonaws.com/
- name: Deploy online version to GitHub Pages
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: bundle # The folder the action should deploy.
build-and-save-offline:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
- name: Build offline-compatible local version
run: |
npm ci
npm run rebuild-db-offline
npm run webpack
npm run bundle
mkdir bundle-offline
mv bundle bundle-offline/LingView
env:
CI: true
REMOTE_MEDIA_PATH: https://uspantekotexts.s3.amazonaws.com/
- name: Save offline-compatible local version as an artifact
uses: actions/upload-artifact@v2
with:
name: LingView-local
path: bundle-offline
- name: Message
run: echo "Saved offline-compatible local version of LingView as an artifact! When distributing, be sure to include the media files in the data/media_files/, keeping the original filenames."