diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index ca99769..c42371d 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -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 \ No newline at end of file diff --git a/.github/workflows/deploy-static-site.yml b/.github/workflows/deploy-static-site.yml index 0e94716..e70292d 100644 --- a/.github/workflows/deploy-static-site.yml +++ b/.github/workflows/deploy-static-site.yml @@ -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 . \ No newline at end of file