+3 #4828
This file contains 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: Deploy | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
pull_request: | |
schedule: | |
- cron: "0 7 * * *" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Environment Printer | |
uses: managedkaos/[email protected] | |
- name: Build apps | |
uses: hyoo-ru/mam_build@master2 | |
with: | |
token: ${{ secrets.GH_PAT }} | |
package: mol | |
modules: app/docs app/hello app/supplies perf/jsfb perf/sierp perf/uibench perf/dbmon perf/dopes app/quine app/questions time/all plot/all app/report syntax2 func/sandbox/demo | |
- name: Consolidate apps | |
run: | | |
rm -rf mol/.git | |
rm -rf mol/.github | |
rm -rf mol/.gitignore | |
rm -rf mol/icon | |
- name: Deploy on GitHub Pages | |
if: github.ref == 'refs/heads/master' | |
uses: alex-page/[email protected] | |
with: | |
repo-token: ${{ secrets.GH_PAT }} | |
site-directory: mol | |
notify: | |
if: github.ref == 'refs/heads/master' | |
runs-on: ubuntu-latest | |
steps: | |
- env: | |
GITHUB_TOKEN: ${{ secrets.GH_PAT }} | |
INPUTS_CLIENT_PAYLOAD: '{"repository":${{ toJson(github.event.repository.name) }}}' | |
INPUTS_EVENT_TYPE: dependency_changed | |
INPUTS_REPOSITORY: ${{ matrix.repo }} | |
uses: rekgrpth/github-repository-dispatch-shell-action@v1 | |
strategy: | |
matrix: | |
repo: | |
- hyoo-ru/mol.hyoo.ru |