diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 1f8b516..7fcf889 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -49,8 +49,8 @@ jobs: - name: Deploy with rsync run: | - mkdir -p /var/www/html/${{ steps.package-version.outputs.current-version}} + sudo mkdir -p /var/www/html/${{ steps.package-version.outputs.current-version}} rsync -avz ./build/ ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:/var/www/html/${{ steps.package-version.outputs.current-version}} - name: Update symlink - run: ln -sf /var/www/html/${{ steps.package-version.outputs.current-version}} /var/www/html/latest + run: sudo ln -sf /var/www/html/${{ steps.package-version.outputs.current-version}} /var/www/html/latest