Run publish step only on main repository
This commit is contained in:
parent
2acedfa898
commit
f91b7c1efa
7
.github/workflows/ci.yaml
vendored
7
.github/workflows/ci.yaml
vendored
@ -1,10 +1,10 @@
|
|||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
branches: [ "master" ]
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "master" ]
|
branches: [ "master" ]
|
||||||
|
push:
|
||||||
|
branches: [ "master" ]
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
@ -58,9 +58,8 @@ jobs:
|
|||||||
publish:
|
publish:
|
||||||
name: Publish
|
name: Publish
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
if: github.ref == 'refs/heads/master' && github.repository == 'michaelbull/kotlin-result'
|
||||||
needs: build
|
needs: build
|
||||||
if: github.ref == 'refs/heads/master' && github.event_name == 'push' && needs.build.result == 'success'
|
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
Loading…
Reference in New Issue
Block a user