[#259] Add deployment environment for deploy.yml
This commit is contained in:
parent
fcd3728f0a
commit
85f2154657
|
@ -25,9 +25,9 @@ concurrency: deploy
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
validate_gradle_wrapper:
|
validate_gradle_wrapper:
|
||||||
runs-on: ubuntu-latest
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
timeout-minutes: 1
|
timeout-minutes: 1
|
||||||
|
@ -39,6 +39,9 @@ jobs:
|
||||||
uses: gradle/wrapper-validation-action@v1.0.4
|
uses: gradle/wrapper-validation-action@v1.0.4
|
||||||
|
|
||||||
check_secrets:
|
check_secrets:
|
||||||
|
environment: deployment
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
has-secrets: ${{ steps.check_secrets.outputs.defined }}
|
has-secrets: ${{ steps.check_secrets.outputs.defined }}
|
||||||
|
@ -54,10 +57,11 @@ jobs:
|
||||||
build_and_deploy:
|
build_and_deploy:
|
||||||
if: needs.check_secrets.outputs.has-secrets == 'true'
|
if: needs.check_secrets.outputs.has-secrets == 'true'
|
||||||
needs: [validate_gradle_wrapper, check_secrets]
|
needs: [validate_gradle_wrapper, check_secrets]
|
||||||
runs-on: ubuntu-latest
|
environment: deployment
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
id-token: write
|
id-token: write
|
||||||
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
timeout-minutes: 1
|
timeout-minutes: 1
|
||||||
|
|
Loading…
Reference in New Issue