-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (39 loc) · 985 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Releases
on:
push:
tags:
- '*'
jobs:
code-tests:
name: Run code tests
uses: ./.github/workflows/code-tests.yml
build:
needs: [ code-tests ]
runs-on: ubuntu-latest
env:
NO_COLOR: 1
QIT_DISABLE_ONBOARDING: yes
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
tools: none
php-version: '7.2'
- name: Version Validation
run: |
if ./qit --version | grep -q "qit_dev_build"; then
echo "Development build detected. Exiting with failure."
exit 1
else
echo "Valid build version. Proceeding."
fi
- uses: ncipollo/release-action@v1
with:
artifacts: "qit"
bodyFile: ./docs/changelogs/${{github.ref_name}}.md
generateReleaseNotes: true
- name: Basic Validation
run: ./qit