Only update release when appropriate
This commit is contained in:
parent
a62dca0239
commit
9efb1ccb57
6
.github/workflows/main.yml
vendored
6
.github/workflows/main.yml
vendored
@ -1,8 +1,5 @@
|
|||||||
name: Main
|
name: Main
|
||||||
on:
|
on: [push, pull_request, workflow_dispatch, workflow_call]
|
||||||
push:
|
|
||||||
workflow_dispatch:
|
|
||||||
workflow_call:
|
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
@ -63,6 +60,7 @@ jobs:
|
|||||||
path: pumpkinmc-pumpkin-api-ts-*.tgz
|
path: pumpkinmc-pumpkin-api-ts-*.tgz
|
||||||
|
|
||||||
- name: Upload artifacts to release
|
- name: Upload artifacts to release
|
||||||
|
if: startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/master'
|
||||||
uses: ncipollo/release-action@v1
|
uses: ncipollo/release-action@v1
|
||||||
with:
|
with:
|
||||||
tag: ${{ env.GITHUB_RELEASE_TAG }}
|
tag: ${{ env.GITHUB_RELEASE_TAG }}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user