2023-01-23 07:02:07 +00:00
|
|
|
name: Build
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
|
|
deploy:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2.3.1
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
./gradlew run
|
|
|
|
- name: Run yarn install
|
|
|
|
uses: borales/actions-yarn@v4
|
|
|
|
with:
|
|
|
|
dir: 'website'
|
|
|
|
cmd: install # will run `yarn install` command
|
2023-01-23 07:08:27 +00:00
|
|
|
# - name: Run yarn build
|
|
|
|
# uses: borales/actions-yarn@v4
|
|
|
|
# with:
|
|
|
|
# dir: 'website'
|
|
|
|
# cmd: run build # will run `yarn test` command
|
|
|
|
# - name: Merge
|
|
|
|
# run: |
|
|
|
|
# cp -a output/. website/public/
|
2023-01-23 07:02:07 +00:00
|
|
|
- name: Deploy
|
|
|
|
uses: JamesIves/github-pages-deploy-action@4.1.4
|
|
|
|
with:
|
|
|
|
branch: gh-pages
|
2023-01-23 07:08:27 +00:00
|
|
|
# folder: website/public
|
|
|
|
folder: output
|