Only update release when appropriate

This commit is contained in:
Demetrius Kanios 2026-08-03 17:08:59 -07:00
parent 60ecda180b
commit 7214e0303d

View File

@ -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
@ -64,6 +61,7 @@ jobs:
path: dist/pumpkin_api_py* path: dist/pumpkin_api_py*
- 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 }}