Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
vicancy authored Jul 10, 2024
1 parent c79a329 commit afbc3de
Showing 1 changed file with 29 additions and 4 deletions.
33 changes: 29 additions & 4 deletions .github/workflows/workflow-call-release-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,37 @@ on:
required: true
env:
NODE_VERSION: '18.x' # set this to the node version to use
AZCOPY_AUTO_LOGIN_TYPE: WORKLOAD

jobs:
pre:
runs-on: ubuntu-latest
environment: Cloud
outputs:
goon: false
steps:
- name: 'Az CLI login'
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURESDKPARTNERDROPS_CLIENT_ID }}
tenant-id: ${{ secrets.AZURESDKPARTNERDROPS_TENANT_ID }}
subscription-id: ${{ secrets.AZURESDKPARTNERDROPS_SUBSCRIPTION_ID }}
- name: AzCopy to shared blob
env:
ClientID: ${{ secrets.AZURESDKPARTNERDROPS_CLIENT_ID }}
TenantId: ${{ secrets.AZURESDKPARTNERDROPS_TENANT_ID }}
AZCOPY_TENANT_ID: ${{ secrets.AZURESDKPARTNERDROPS_TENANT_ID }}
AZCOPY_CLIENT_ID: ${{ secrets.AZURESDKPARTNERDROPS_CLIENT_ID }}
AZCOPY_SPA_APPLICATION_ID: ${{ secrets.AZURESDKPARTNERDROPS_CLIENT_ID }}
AZCOPY_SPA_CLIENT_ID: ${{ secrets.AZURESDKPARTNERDROPS_CLIENT_ID }}
AZCOPY_MSI_CLIENT_ID: ${{ secrets.AZURESDKPARTNERDROPS_CLIENT_ID }}
AZCOPY_AUTO_LOGIN_TYPE: workload
run: |
echo "$AZCOPY_AUTO_LOGIN_TYPE"
azcopy copy ${{ steps.pack_package.outputs.packagePath }} "${{ secrets.AZURESDKPARTNERDROPS_URL }}/azure-webpubsub/${{ inputs.package_name }}/${{ needs.check_version.outputs.release_version }}/"
check_version:
needs: pre
if: ${{ needs.pre.outputs.goon == 'true' }}
runs-on: ubuntu-latest
outputs:
needs_release: ${{ steps.compare_versions.outputs.needs_release }}
Expand Down Expand Up @@ -72,9 +99,7 @@ jobs:
id: compare_versions
if: steps.needs_release.outputs.needs_release == 'true' && steps.tag_version.outputs.tag_version != steps.read_current_version.outputs.current_version
run: |
echo "needs_release=true" >> $GITHUB_OUTPUT
build-deploy:
echo "needs_release=true" >> $GITHUB_OUTPUTbuild-deploy:
runs-on: ubuntu-latest
needs: check_version
environment: Cloud
Expand Down

0 comments on commit afbc3de

Please sign in to comment.