Skip to content

Deploying from release branches #787

Answered by anthonychu
donniehale-awh asked this question in Q&A
Discussion options

You must be logged in to vote

This is a super interesting workflow @donniehale-awh!

You can do this using the new deployment_environment input parameter (so new that we haven't documented it yet!).

To deploy your main branch to development:

https://github.com/anthonychu/20220420-issue-staticwebapps-787/blob/main/.github/workflows/deploy-to-development.yml

name: Deploy to development

on:
  push:
    branches:
      - main

jobs:
  build_and_deploy_job:
    runs-on: ubuntu-latest
    name: Build and Deploy Job
    steps:
      - uses: actions/checkout@v2
        with:
          submodules: true
      - name: Build And Deploy
        id: builddeploy
        uses: Azure/static-web-apps-deploy@v1
        with:
          a…

Replies: 7 comments 10 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@anthonychu
Comment options

Answer selected by donniehale-awh
Comment options

You must be logged in to vote
5 replies
@anthonychu
Comment options

@anthonychu
Comment options

@donniehale-awh
Comment options

@anthonychu
Comment options

@donniehale-awh
Comment options

Comment options

You must be logged in to vote
1 reply
@marianfoo
Comment options

Comment options

You must be logged in to vote
3 replies
@donniehale-awh
Comment options

@donniehale-awh
Comment options

@donniehale-awh
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants