Update CI workflow for main branch and release events
This commit is contained in:
parent
813e2c4594
commit
cbd4b459bb
1 changed files with 2 additions and 9 deletions
11
.github/workflows/ci.yml
vendored
11
.github/workflows/ci.yml
vendored
|
@ -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/
|
Loading…
Add table
Reference in a new issue