Update CI workflow for main branch and release events

This commit is contained in:
netkas 2024-09-17 13:29:40 -04:00
parent 813e2c4594
commit cbd4b459bb

View file

@ -3,7 +3,7 @@ name: CI
on:
push:
branches:
- 'main'
- 'master'
release:
types: [created]
workflow_dispatch:
@ -55,11 +55,10 @@ jobs:
ncc build --config release --log-level debug
release:
needs: build
runs-on: ubuntu-latest
container:
image: php:8.3
if: github.event_name == 'release' && startsWith(github.event.release.tag_name, 'v')
if: github.event_name == 'release'
steps:
- name: Checkout repository
@ -103,9 +102,3 @@ jobs:
echo "Build artifact not found"
exit 1
fi
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: build
path: build/