Skip to content

Commit

Permalink
Merge pull request #643 from PedroDebevere/azuredeploy
Browse files Browse the repository at this point in the history
Update azure-static-web-apps-happy-dune-071cbee03.yml
  • Loading branch information
MariekeGO authored Jan 14, 2025
2 parents 0ca2ec0 + 2497836 commit 8a6ba0e
Showing 1 changed file with 34 additions and 14 deletions.
48 changes: 34 additions & 14 deletions .github/workflows/azure-static-web-apps-happy-dune-071cbee03.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,22 @@ jobs:
run: Expand-Archive -Path _site.zip -DestinationPath ./_site
shell: pwsh
- name: Upload the new files
uses: bacongobbler/azure-blob-storage-upload@main
with:
source_dir: _site
container_name: $web
connection_string: ${{ secrets.AZURE_SA_DOCSCONNECTORS_SWA }}
sync: 'true'
env:
AZURE_STORAGE_CONNECTION_STRING: ${{ secrets.AZURE_SA_DOCSCONNECTORS_SWA }}
run: |
wget https://aka.ms/downloadazcopy-v10-linux
tar -xvf downloadazcopy-v10-linux
sudo cp ./azcopy_linux_amd64_*/azcopy /usr/bin/
az storage blob sync \
--source _site \
--container '$web'
# - name: Upload the new files
# uses: bacongobbler/azure-blob-storage-upload@main
# with:
# source_dir: _site
# container_name: $web
# connection_string: ${{ secrets.AZURE_SA_DOCSCONNECTORS_SWA }}
# sync: 'true'


deploy_job_Storage_Account:
Expand All @@ -103,14 +113,24 @@ jobs:
rm -f ./_site/README.html
find ./_site -name 'toc.html' -type f -delete
- name: Upload the new files
uses: bacongobbler/azure-blob-storage-upload@main
with:
source_dir: _site
container_name: docs-connectors
connection_string: ${{ secrets.AZURE_STORAGE_ACCOUNT_DOCS_CONNECTION_STRING }}
# Sync: true keeps the source and destination in sync,
# otherwise changed files and new would be pushed, but deleted wouldn't be removed.
sync: 'true'
env:
AZURE_STORAGE_CONNECTION_STRING: ${{ secrets.AZURE_STORAGE_ACCOUNT_DOCS_CONNECTION_STRING }}
run: |
wget https://aka.ms/downloadazcopy-v10-linux
tar -xvf downloadazcopy-v10-linux
sudo cp ./azcopy_linux_amd64_*/azcopy /usr/bin/
az storage blob sync \
--source _site \
--container docs-connectors
# - name: Upload the new files
# uses: bacongobbler/azure-blob-storage-upload@main
# with:
# source_dir: _site
# container_name: docs-connectors
# connection_string: ${{ secrets.AZURE_STORAGE_ACCOUNT_DOCS_CONNECTION_STRING }}
# # Sync: true keeps the source and destination in sync,
# # otherwise changed files and new would be pushed, but deleted wouldn't be removed.
# sync: 'true'

reindex_azure_search:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 8a6ba0e

Please sign in to comment.