Skip to content

Commit

Permalink
Only execute on release branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Wavesonics committed Oct 9, 2024
1 parent efdd262 commit 205d99a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ on:
push:
tags:
- 'v*'
branches:
- release

jobs:
windows:
if: github.ref_name == 'release'
runs-on: windows-latest
permissions:
contents: write
Expand Down Expand Up @@ -71,6 +70,7 @@ jobs:
artifacts: "D:\\a\\hammer-editor\\hammer-editor\\desktop\\build\\installers\\main-release\\msi\\hammer.msi"

linux:
if: github.ref_name == 'release'
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down Expand Up @@ -124,6 +124,7 @@ jobs:
artifacts: "/home/runner/work/hammer-editor/hammer-editor/desktop/build/installers/main-release/deb/hammer.deb"

macos:
if: github.ref_name == 'release'
runs-on: macos-latest
steps:
- name: Checkout code
Expand Down Expand Up @@ -177,6 +178,7 @@ jobs:
artifacts: "/Users/runner/work/hammer-editor/hammer-editor/desktop/build/installers/main-release/dmg/hammer.dmg"

server:
if: github.ref_name == 'release'
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down Expand Up @@ -232,6 +234,7 @@ jobs:
artifacts: "/home/runner/work/hammer-editor/hammer-editor/server/build/distributions/*.*"

android:
if: github.ref_name == 'release'
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down

0 comments on commit 205d99a

Please sign in to comment.