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