Maybe fixed dependency caching
[Mograsim.git] / .github / workflows / maven.yml
index 8fdc5d5..13eda7f 100644 (file)
@@ -23,7 +23,7 @@ jobs:
       uses: actions/cache@v2.1.1
       with:
         path: ~/.m2/repository
-        key: mograsim-maven-${{ hashFiles('**/pom.xml,**/MANIFEST.MF') }}
+        key: mograsim-maven-${{ hashFiles('**/pom.xml', '**/MANIFEST.MF', '.github/workflows/maven.yml') }}
         restore-keys: |
           mograsim-maven-
     - name: Build with Maven
@@ -34,7 +34,8 @@ jobs:
         MOGRASIM_NET_HOST_PUBKEY: ${{ secrets.MOGRASIM_NET_HOST_PUBKEY }}
       run: |
         mkdir -p ~/.ssh
-        echo "${DEPLOY_KEY}" > ~/.ssh/id_rsa_deploy
+        touch ~/.ssh/id_rsa_deploy
         chmod 600 ~/.ssh/id_rsa_deploy
-        echo "${MOGRASIM_NET_HOST_PUBKEY}" >> ~/.ssh/known_hosts
+        printenv DEPLOY_KEY > ~/.ssh/id_rsa_deploy
+        printenv MOGRASIM_NET_HOST_PUBKEY >> ~/.ssh/known_hosts
         scp -i ~/.ssh/id_rsa_deploy -r releng/net.mograsim.plugin.updatesite/target/repository mgsdeploy@mograsim.net:/mograsim/testdeploy