Update: Modifying environments (dev, stg and prd) to (alpha, beta and production)

This commit is contained in:
alexsanderp
2022-02-09 15:32:44 -03:00
parent de9fa2615e
commit 097d179770
2 changed files with 8 additions and 6 deletions
+5 -5
View File
@@ -2,8 +2,8 @@ name: Deploy
on: on:
push: push:
branches: branches:
- dev - alpha
- stg - beta
- main - main
jobs: jobs:
@@ -26,11 +26,11 @@ jobs:
[ [
'main', 'main',
{ {
name: 'dev', name: 'alpha',
prerelease: true prerelease: true
}, },
{ {
name: 'stg', name: 'beta',
prerelease: true prerelease: true
} }
] ]
@@ -62,7 +62,7 @@ jobs:
shell: bash shell: bash
run: | run: |
if [ ${GITHUB_REF} == "refs/heads/main" ]; then if [ ${GITHUB_REF} == "refs/heads/main" ]; then
echo "##[set-output name=result;]$(echo "prd")" echo "##[set-output name=result;]$(echo "production")"
else else
echo "##[set-output name=result;]$(echo ${GITHUB_REF#refs/heads/})" echo "##[set-output name=result;]$(echo ${GITHUB_REF#refs/heads/})"
fi fi
+3 -1
View File
@@ -2,7 +2,9 @@ name: Test
on: on:
pull_request: pull_request:
branches: branches:
- dev - alpha
- beta
- main
jobs: jobs:
test: test: