From da3a5e35079a79019a1b9d97c35d3a48bde77de0 Mon Sep 17 00:00:00 2001 From: Jeff Wilcox <427913+jeffwilcox@users.noreply.github.com> Date: Tue, 14 May 2024 07:58:46 -0700 Subject: [PATCH] Build: additional output drop --- .github/workflows/build.yml | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 903e1977e..8ec89ac9e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,8 +4,6 @@ on: push: branches: - main - #paths-ignore: - # - '.github/workflows/*.yml' env: REGISTRY: docker.pkg.github.com @@ -13,12 +11,6 @@ env: jobs: build: runs-on: ubuntu-latest - #services: - #sitebuildercontainer: - #image: docker.pkg.github.com/microsoft/opensource.microsoft.com/xxx:latest - #credentials: - #username: ${{ github.actor }} - #password: ${{ secrets.GITHUB_TOKEN }} steps: # actions/checkout@v2 on 11/4/2021 - uses: actions/checkout@230611dbd0eb52da1e1f4f7bc8bb0c3a339fc8b7 @@ -32,14 +24,9 @@ jobs: registry: ${{ env.REGISTRY }} username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - #- name: Login to GitHub Packages - # run: | - # run: echo ${{ secrets.READONLY_PACKAGE_TOKEN }} | docker login -u ${{ secrets.READONLY_PACKAGE_SP }} --password-stdin - # login-server: 'docker.pkg.github.com' - name: "Build the site" run: | docker run -i -v ${PWD}:/usr/local/site docker.pkg.github.com/microsoft/opensource.microsoft.com/custom-jekyll-builder:latest sh << COMMANDS - pwd && whoami cd /usr/local/site ls -la bundle install @@ -81,6 +68,20 @@ jobs: --account-name ${{ secrets.AZURE_FILES_USERNAME }} \ --source /home/runner/work/opensource.microsoft.com/opensource.microsoft.com/content.json \ -s dev + - uses: azure/CLI@v1 + name: "Upload to share via CLI (2024)" + with: + inlineScript: | + az storage file upload \ + --account-key ${{ secrets.AZURE_FILES_SP }} \ + --account-name ${{ secrets.AZURE_FILES_USERNAME }} \ + --source /home/runner/work/opensource.microsoft.com/opensource.microsoft.com/site.zip \ + -s oss-live + az storage file upload \ + --account-key ${{ secrets.AZURE_FILES_SP }} \ + --account-name ${{ secrets.AZURE_FILES_USERNAME }} \ + --source /home/runner/work/opensource.microsoft.com/opensource.microsoft.com/content.json \ + -s oss-live - name: "Prepare to AzCopy..." working-directory: /home/runner/work run: |