Build on GitHub #11
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: Build on GitHub | |
on: | |
workflow_dispatch: | |
jobs: | |
build-then-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Setup JAVA | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
check-latest: true | |
- name: Run per se | |
run: bash deploy/build_js.sh | |
shell: bash | |
- name: Save files | |
run: | | |
mkdir build | |
cp ermac.min.js jquery.min.js webassets build | |
cp example_prod.html build/index.html | |
ls -al build | |
- name: Deploy | |
uses: JamesIves/github-pages-deploy-action@4.1.7 | |
with: | |
branch: gh-pages | |
folder: build |