only deploy uses prod env

This commit is contained in:
Andy Pack 2023-09-06 19:00:31 +01:00
parent 1667e23d7a
commit 6a17775f07
Signed by: sarsoo
GPG Key ID: A55BA3536A5E0ED7

View File

@ -60,8 +60,7 @@ jobs:
documentation: documentation:
runs-on: ubuntu-latest runs-on: ubuntu-latest
environment: prod needs: [build, deploy] # for ignoring bad builds
needs: build # for ignoring bad builds
if: github.event_name == 'push' && github.ref == 'refs/heads/master' if: github.event_name == 'push' && github.ref == 'refs/heads/master'
steps: steps:
- uses: actions/checkout@v3 # get source - uses: actions/checkout@v3 # get source
@ -118,7 +117,6 @@ jobs:
package: package:
runs-on: ubuntu-latest runs-on: ubuntu-latest
environment: prod
needs: [build] # for ignoring bad builds needs: [build] # for ignoring bad builds
if: github.event_name == 'push' && github.ref == 'refs/heads/master' if: github.event_name == 'push' && github.ref == 'refs/heads/master'