Saltar al contenido
mypipelines
React·Consumer template·on: push

React Release Deploy

Template: Deploy on release branch Copy to: .github/workflows/release-deploy.yml Triggers on push to release/* branches Runs: build + test + deploy (STAGING environment) Required secrets: Same as deve

templates/react-release-deploy.yml

templates/react-release-deploy.yml
# Template: Deploy on release branch
# Copy to: .github/workflows/release-deploy.yml
#
# Triggers on push to release/* branches
# Runs: build + test + deploy (STAGING environment)
#
# Required secrets: Same as develop-deploy.yml
name: Deploy to STAGING
on:
push:
branches:
- 'release/**'
# Deploys on one ref run one at a time, in order. Never cancel one mid-flight:
# a half-applied deploy is worse than a late one.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
permissions:
contents: read
id-token: write
jobs:
deploy:
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
uses: <org>/ci-templates/.github/workflows/react-main-pipeline.yml@v2
with:
run_build: true
run_test: true
run_deploy: true
environment: 'staging'
secrets: inherit