Skip to content

Commit

Permalink
CI: Limit publishing steps to master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Hendricks266 committed Aug 2, 2023
1 parent b275cb1 commit 206fd02
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: Build

on:
push:
branches:
- master
branches: [master]
pull_request: {}
merge_group: {}

Expand Down Expand Up @@ -41,6 +40,7 @@ jobs:
git fetch --unshallow
make -j2 duke3d sw blood rr exhumed kenbuild tools SDLCONFIG= ${{matrix.opt}}
- name: prepare artifacts
if: github.ref == 'refs/heads/master'
run: |
mkdir -p upload/nblood/
mkdir -p upload/rednukem/
Expand All @@ -49,6 +49,7 @@ jobs:
cp rednukem.exe upload/rednukem/
cp pcexhumed.exe upload/pcexhumed/
- uses: actions/upload-artifact@v2
if: github.ref == 'refs/heads/master'
with:
name: ${{matrix.label}}
path: upload/
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ name: Publish

# Only trigger, when the build workflow succeeded
on:
workflow_dispatch:
workflow_run:
workflows: [Build]
types:
- completed
types: [completed]
branches: [master]

jobs:
release:
Expand Down

0 comments on commit 206fd02

Please sign in to comment.