Azure / Azure/static-web-apps

Force Deploy to production

Open
#1,507 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
346
Forks
67
PR merge metrics
No merged PRs in 30d

Description

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)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.