Skip to content

Commit

Permalink
fix(deploy): trigger release step on tag only
Browse files Browse the repository at this point in the history
  • Loading branch information
Iipin committed Aug 27, 2023
1 parent c8fc7ce commit 85cc0bc
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: "Build PDF"

on:
push:
branches:
- '*'
on: push

jobs:
build:
Expand Down Expand Up @@ -43,7 +40,7 @@ jobs:
- name: Create release (on push to master)
uses: softprops/action-gh-release@v1
if: ${{ github.ref_name == 'master' }}
if: startsWith(github.ref, 'refs/tags/release-')
with:
files: |
build/statut.pdf
Expand Down

0 comments on commit 85cc0bc

Please sign in to comment.