Skip to content

Commit

Permalink
ZIP PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
ralongit committed Sep 11, 2024
1 parent d35e0d0 commit 7a54849
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/upload-azure-function-zip.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,20 @@ jobs:
cd logzio_function
func pack --build-native-deps --python
cp logzio_function.zip ../logzio_function.zip
- name: Set file permissions
run: chmod 644 logzio_function.zip

- name: List directory contents
run: ls -la

- name: Upload 'logzio_function' zip file to Azure storage
run: |
az storage blob upload \
--account-name logzioblobtrigger \
--account-key ${{ secrets.STORAGE_ACCOUNT_KEY }} \
--container-name eventhub \
--name logzio_function-${{ github.event.release.tag_name }}.zip \
--file logzio_function.zip
uses: azure/CLI@v2
with:
inlineScript: |
az storage blob upload \
--account-name logzioblobtrigger \
--account-key ${{ secrets.STORAGE_ACCOUNT_KEY }} \
--container-name eventhub \
--name logzio_function-${{ github.event.release.tag_name }}.zip \
--file $(pwd)/logzio_function.zip

0 comments on commit 7a54849

Please sign in to comment.