feat: modify build workflow to trigger actions only on release events

This commit is contained in:
zurdi
2025-02-24 15:55:36 +00:00
parent 80388eef4c
commit 9ea8e747ea

View File

@@ -12,11 +12,15 @@ permissions: read-all
jobs:
build:
runs-on: ubuntu-latest
if: github.event_name != 'push' || github.event_name == 'release'
permissions:
id-token: write
contents: write
packages: write
steps:
- name: Run only once per release
run: echo "Triggered by ${{ github.event_name }}"
- name: Checkout code
uses: actions/checkout@v4