Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command Fails: azcopy10 sync #5

Open
awais-codes opened this issue Jul 24, 2024 · 0 comments
Open

Command Fails: azcopy10 sync #5

awais-codes opened this issue Jul 24, 2024 · 0 comments

Comments

@awais-codes
Copy link

My Config:


on:
  push:
    branches:
      - main
  pull_request:
    types: [opened, synchronize, reopened, closed]
    branches:
      - main

jobs:
  build-and-deploy:
    if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
    name: Build and deploy
    runs-on: ubuntu-latest
    
    steps:
    - uses: actions/checkout@v3
      
    - name: Install Node.js
      uses: actions/setup-node@v3
      with:
        node-version: 20.13.1
      
    - name: Build website
      run: |
        yarn
        cd apps/wordaddin
        npm run build
        
    - name: Deploy to Azure
      uses: TravisSpomer/[email protected]
      with:
        source-path: dist/wordaddin/
        require-index: false
        sas-url:  ${{ secrets.DEPLOY_SAS_URL }}`

Error:

/usr/local/bin/azcopy10 sync dist/wordaddin https://wordaddin01.blob.core.windows.net/$web?***

  Cannot perform sync due to error: trying to sync between different resource types (either file <-> directory or directory <-> file) which is not allowed.sync must happen between source and destination of the same type, e.g. either file <-> file or directory <-> directory.To make sure target is handled as a directory, add a trailing '/' to the target.
@awais-codes awais-codes changed the title az Command Fails: azcopy10 sync Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant