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

Force Deploy to production #1507

Open
muhammadnasr opened this issue Jul 2, 2024 · 0 comments
Open

Force Deploy to production #1507

muhammadnasr opened this issue Jul 2, 2024 · 0 comments

Comments

@muhammadnasr
Copy link

In my CICD I have static web app for each environment so I don't want to use static web app managed environments.
I am trying to force deploy to product in inside my pull request CICD code but it was deploy to branch environment and refuse to deploy to my custom domain .

here is my code

  - name: Build And Deploy
    id: builddeploy
    uses: Azure/static-web-apps-deploy@v1
    with:
      azure_static_web_apps_api_token: ${{ env.DEPLOYMENT_TOKEN }}
      repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
      action: "upload"
      app_location: "/" # App source code path
      output_location: "dist" # Built app content directory 
      deployment_environment: "Production" #always push to production (we don't use preview environments)
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