Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreeam-qwq committed Mar 10, 2024
1 parent 87163ff commit eb9793a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 38 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build-1204.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Build Leaf 1.20.4
on:
push:
branches: [ "ver/1.20.4" ]
pull_request:
branches: [ "ver/1.20.4" ]

jobs:
build:
Expand Down Expand Up @@ -31,6 +33,7 @@ jobs:
run: mv build/libs/leaf-paperclip-1.20.4-R0.1-SNAPSHOT-reobf.jar ./leaf-1.20.4.jar

- name: Publish API
if: github.event_name != 'pull_request'
run: |
echo "GITHUB_USERNAME=Leaf" >> $GITHUB_ENV
export GITHUB_USERNAME=Leaf
Expand All @@ -46,7 +49,7 @@ jobs:
path: ./leaf-1.20.4.jar

- name: Release Leaf
if: contains(github.event.commits[0].message, '[Release]')
if: github.event_name != 'pull_request'
uses: marvinpinto/action-automatic-releases@master
with:
title: "Leaf 1.20.4"
Expand Down
37 changes: 0 additions & 37 deletions .github/workflows/pr-1204.yml

This file was deleted.

0 comments on commit eb9793a

Please sign in to comment.