From 8ae2dc28f632c42abf8e41459c79c18e34d93f54 Mon Sep 17 00:00:00 2001 From: Stefan Hattrell <29941279+digorgonzola@users.noreply.github.com> Date: Thu, 25 Aug 2022 16:17:27 +1000 Subject: [PATCH] use environments for approval --- .github/workflows/release.yml | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5d6fefed..e41c6952 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -68,14 +68,15 @@ jobs: copy_artifact_rc: name: copy wheel to rc folder runs-on: ubuntu-latest + environment: 'rc' needs: build_and_publish steps: - - name: wait for approval - uses: trstringer/manual-approval@v1 - if: ${{ !env.ACT }} - with: - secret: ${{ github.TOKEN }} - approvers: digorgonzola +# - name: wait for approval +# uses: trstringer/manual-approval@v1 +# if: ${{ !env.ACT }} +# with: +# secret: ${{ github.TOKEN }} +# approvers: digorgonzola - uses: unfor19/install-aws-cli-action@master if: ${{ env.ACT }} @@ -99,16 +100,17 @@ jobs: copy_artifact_prod: name: copy wheel to prod folder runs-on: ubuntu-latest + environment: 'prod' needs: - build_and_publish - copy_artifact_rc steps: - - name: wait for approval - uses: trstringer/manual-approval@v1 - if: ${{ !env.ACT }} - with: - secret: ${{ github.TOKEN }} - approvers: digorgonzola +# - name: wait for approval +# uses: trstringer/manual-approval@v1 +# if: ${{ !env.ACT }} +# with: +# secret: ${{ github.TOKEN }} +# approvers: digorgonzola - uses: unfor19/install-aws-cli-action@master if: ${{ env.ACT }}