-
Notifications
You must be signed in to change notification settings - Fork 4
40 lines (36 loc) · 882 Bytes
/
release.yml
File metadata and controls
40 lines (36 loc) · 882 Bytes
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
name: Release
on:
push:
branches:
- 'main'
permissions:
contents: write
jobs:
release:
name: Release
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Clone repository
uses: actions/checkout@v6
with:
fetch-depth: '0'
- name: Use PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.5'
tools: composer
- name: Install dependencies
run: |
composer install
- name: Run QA
run: |
composer qa
- name: Get next version
id: get_next_version
uses: thenativeweb/get-next-version@2.7.1
- name: Create new version
if: ${{ steps.get_next_version.outputs.hasNextVersion == 'true' }}
run: |
git tag ${{ steps.get_next_version.outputs.version }}
git push origin ${{ steps.get_next_version.outputs.version }}