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:
|
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/
|
|
Loading…
Add table
Reference in a new issue