Skip to content

Commit

Permalink
build: use push for deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
JasperHG90 committed Jan 6, 2024
1 parent 10664a2 commit afaf555
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,17 @@ jobs:
runs-on: ubuntu-latest
environment: production
needs: build
if: always() && (needs.build.result == 'success') && (github.event_name == 'release')
if: always() && (needs.build.result == 'success') && (github.event_name == 'push')
steps:
- name: Checkout
uses: actions/checkout@v3
- name: 'set version (release)'
- name: 'set version (push)'
run: |
VERSION=$(echo $GITHUB_REF | sed -e 's/refs\/tags\///g')
echo "VERSION=$VERSION" >> $GITHUB_ENV
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
- name: Setup nginx
uses: cuchi/[email protected]
with:
Expand Down

0 comments on commit afaf555

Please sign in to comment.