11 - uses: actions/checkout@v2
12 - name: Checkout submodules # See https://github.com/actions/checkout#Checkout-submodules
15 auth_header="$(git config --local --get http.https://github.com/.extraheader)"
16 git submodule sync --recursive
17 git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
19 uses: actions/setup-java@v1
22 - name: Cache Maven Dependencies
23 uses: actions/cache@v2.1.1
25 path: ~/.m2/repository
26 key: mograsim-maven-${{ hashFiles('**/pom.xml,**/MANIFEST.MF') }}
29 - name: Build with Maven
30 run: mvn --batch-mode --errors --fail-at-end --show-version clean verify --file pom.xml
31 - name: Deploy to mograsim.net
33 DEPLOY_KEY: ${{ secrets.DEPLOY_KEY}}
34 MOGRASIM_NET_HOST_PUBKEY: ${{ secrets.MOGRASIM_NET_HOST_PUBKEY }}
37 echo "${DEPLOY_KEY}" > ~/.ssh/id_rsa_deploy
38 chmod 600 ~/.ssh/id_rsa_deploy
39 echo "${MOGRASIM_NET_HOST_PUBKEY}" >> ~/.ssh/known_hosts
40 scp -i ~/.ssh/id_rsa_deploy -r releng/net.mograsim.plugin.updatesite/target/repository mograsim@mograsim.net:/mograsim/testdeploy