Skip to content

Commit

Permalink
Create function zip file
Browse files Browse the repository at this point in the history
  • Loading branch information
mcasperson committed May 26, 2021
1 parent e789c65 commit de49e9e
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/java.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}

0 comments on commit de49e9e

Please sign in to comment.