Skip to content

Commit

Permalink
Only release when there's a tag
Browse files Browse the repository at this point in the history
  • Loading branch information
SunsetMkt committed Jul 10, 2022
1 parent 8090474 commit 726d291
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ name: Release Packed Application

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10

jobs:
build:
Expand Down Expand Up @@ -35,6 +34,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body: |
${{ github.ref }} View README for more information.
Expand Down

0 comments on commit 726d291

Please sign in to comment.