Skip to content

Commit

Permalink
test storage upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Jord-Gui committed Oct 4, 2023
1 parent 56c77d2 commit 01556b7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ jobs:
# environment: prod
# secrets: inherit

# build-site-prod:
# uses: ./.github/workflows/build-static-site.yml
# secrets: inherit
build-site-prod:
uses: ./.github/workflows/build-static-site.yml
secrets: inherit

deploy-site-prod:
uses: ./.github/workflows/deploy-static-site.yml
with:
environment: prod
secrets: inherit
# needs: build-site-prod
needs: build-site-prod

18 changes: 8 additions & 10 deletions .github/workflows/deploy-static-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,19 @@ jobs:
tenant-id: ${{ env.TENANT_ID }}
subscription-id: ${{ env.SUBSCRIPTION_ID }}

# - name: Download all workflow run artifacts
# uses: actions/download-artifact@v3
# with:
# name: out
- name: Download all workflow run artifacts
uses: actions/download-artifact@v3
with:
name: out

- name: Print working directory
run: ls

# - name: List blob storage
# uses: azure/CLI@v1
# with:
# inlineScript: |
# az storage blob list --account-name sswdory --auth-mode key -c '$web'

- name: Test azure cli
run: |
az --version
az storage blob list --account-name sswdory --container-name '$web'
- name: Upload assets to Azure
run: |
az storage blob upload-batch --account-name sswdory --auth-mode key -d '$web' -s .

0 comments on commit 01556b7

Please sign in to comment.