diff --git a/.github/workflows/azure-static-web-apps-brave-glacier-0a3a05903.yml b/.github/workflows/azure-static-web-apps-brave-glacier-0a3a05903.yml index 55cedeb..34f7fd8 100644 --- a/.github/workflows/azure-static-web-apps-brave-glacier-0a3a05903.yml +++ b/.github/workflows/azure-static-web-apps-brave-glacier-0a3a05903.yml @@ -29,19 +29,11 @@ jobs: run: pnpm install - name: Build project run: pnpm build - - name: Build And Deploy - id: builddeploy - uses: Azure/static-web-apps-deploy@v1 - with: - azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_BRAVE_GLACIER_0A3A05903 }} - repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments) - action: 'upload' - ###### Repository/Build Configurations - These values can be configured to match your app requirements. ###### - # For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig - app_location: '/' # App source code path - api_location: '' # Api source code path - optional - output_location: 'dist' # Built app content directory - optional - ###### End of Repository/Build Configurations ###### + - name: Deploy to Azure Static Web Apps + env: + AZURE_STATIC_WEB_APPS_API_TOKEN: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_BRAVE_GLACIER_0A3A05903 }} + run: | + npx swa deploy ./dist --api-token $AZURE_STATIC_WEB_APPS_API_TOKEN --env production close_pull_request_job: if: github.event_name == 'pull_request' && github.event.action == 'closed'