Merge remote-tracking branch 'origin/master' #62
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: | |
push: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-java@v2 | |
with: | |
java-version: '8' | |
distribution: 'adopt' | |
- name: run | |
run: | | |
cp -r docs ../docs | |
mvn org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:assembly | |
java -jar target/webhome-1.0-SNAPSHOT-jar-with-dependencies.jar json=src/main/resources/in.json out=../index.html | |
mkdir -p ~/.ssh/ | |
echo "$SSH_KEY" | tr -d '\r' > ~/.ssh/id_rsa | |
chmod 600 ~/.ssh/id_rsa | |
ssh-keyscan github.com >> ~/.ssh/known_hosts | |
# set git infomation | |
git config --global user.name 'mikusugar' | |
git config --global user.email '[email protected]' | |
# push | |
git checkout -b web | |
cp -r ../docs docs | |
cp ../index.html docs/cn/index.html | |
cp ../index.html docs/en/index.html | |
git add docs/* | |
git commit -m "update: web" | |
git push -f origin web |