Skip to content

Commit

Permalink
Remove publish tag again (#63)
Browse files Browse the repository at this point in the history
* remove publish tag again

* try only running on a merge when the pull request is closed
  • Loading branch information
thebehera authored May 12, 2024
1 parent 0c13e24 commit 5c44d5b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/merged.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
name: "Build Test and Deploy"
on:
push:
pull_request_target:
paths-ignore:
- '*.md'
branches: [ main ]
types:
- closed
env:
username: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
password: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
jobs:
create-staging-repository:
if: github.event.pull_request.merged == true
name: Create staging repository
runs-on: ubuntu-latest
outputs:
Expand All @@ -30,6 +33,7 @@ jobs:
fi
macos:
name: MacOS Build & Upload artifacts to sonatype
if: github.event.pull_request.merged == true
needs: create-staging-repository
runs-on: macOS-latest
env:
Expand Down Expand Up @@ -93,7 +97,7 @@ jobs:
finalize:
runs-on: ubuntu-latest
needs: [create-staging-repository, macos]
if: ${{ always() && needs.create-staging-repository.result == 'success' }}
if: ${{ always() && needs.create-staging-repository.result == 'success' && github.event.pull_request.merged == true }}
steps:
- name: Discard
if: ${{ needs.macos.result != 'success' }}
Expand Down

0 comments on commit 5c44d5b

Please sign in to comment.