Skip to content

Commit

Permalink
build: set deploy to only release
Browse files Browse the repository at this point in the history
  • Loading branch information
JasperHG90 committed Jan 10, 2024
1 parent 3165275 commit a110a70
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,14 @@ jobs:
runs-on: ubuntu-latest
environment: production
needs: build
if: always() && (needs.build.result == 'success') && (github.event_name == 'push')
if: always() && (needs.build.result == 'success') && (github.event_name == 'release')
steps:
- name: Checkout
uses: actions/checkout@v3
- name: 'set version (push)'
- name: 'set version (release)'
run: |
echo "VERSION=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
# - name: 'set version (release)'
# run: |
# VERSION=$(echo $GITHUB_REF | sed -e 's/refs\/tags\///g')
# echo "VERSION=$VERSION" >> $GITHUB_ENV
VERSION=$(echo $GITHUB_REF | sed -e 's/refs\/tags\///g')
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Parse values
uses: cuchi/[email protected]
with:
Expand Down

0 comments on commit a110a70

Please sign in to comment.