From de49e9ef9fa6305564a021a3d29cd5d24090b8f2 Mon Sep 17 00:00:00 2001 From: Matthew Casperson Date: Wed, 26 May 2021 12:06:00 +1000 Subject: [PATCH] Create function zip file --- .github/workflows/java.yaml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/java.yaml b/.github/workflows/java.yaml index 292b33a..4db0425 100644 --- a/.github/workflows/java.yaml +++ b/.github/workflows/java.yaml @@ -25,6 +25,9 @@ jobs: - name: Build run: ./mvnw package + - name: Create function zip + run: cd target/azure-functions; zip -r ../../randomquotes-azure.0.1.${{ github.run_number }}.zip * + - name: Create Release id: create_release uses: actions/create-release@v1 @@ -43,12 +46,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: target/randomquotesapi-azure-0.1.${{ github.run_number }}.jar - asset_name: randomquotesapi-azure.0.1.${{ github.run_number }}.jar + asset_path: randomquotes-azure.0.1.${{ github.run_number }}.zip + asset_name: randomquotes-azure.0.1.${{ github.run_number }}.zip asset_content_type: application/zip - - name: Publish package - run: mvn --batch-mode deploy - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -