Skip to content

Commit

Permalink
Merge branch 'develop' into fix/introduce-system-condition
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Sep 1, 2023
2 parents d12f1cc + 0c8f71e commit cbdb1c9
Show file tree
Hide file tree
Showing 248 changed files with 33,404 additions and 20,373 deletions.
5 changes: 0 additions & 5 deletions .github/FUNDING.yml

This file was deleted.

15 changes: 5 additions & 10 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
categories:
- title: "Breaking Changes"
labels:
- "BC-break"
- title: "Major Features"
- title: "Major features"
labels:
- "MAJOR"
- title: "Documentation enhancements"
- title: "Breaking changes"
labels:
- "Documentation :books:"
template: |
## What’s Changed
$CHANGES
- "BC-break"
- title: "Other changes"
template: $CHANGES
15 changes: 15 additions & 0 deletions .github/workflows/build-changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Build changelog

on:
push:
branches:
- develop

jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
- name: Run Release Drafter
uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47 changes: 47 additions & 0 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Build release

on:
push:
branches:
- 'release/*'

jobs:
autocommit:
name: Build Release
runs-on: ubuntu-latest
container:
image: ghcr.io/mvorisek/image-php:latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.ref }}

- name: Install PHP dependencies
run: composer update --ansi --prefer-dist --no-interaction --no-progress --optimize-autoloader

- name: Update composer.json
run: >-
composer config --unset version && php -r '
$f = __DIR__ . "/composer.json";
$data = json_decode(file_get_contents($f), true);
foreach ($data as $k => $v) {
if (preg_match("~^(.+)-release$~", $k, $matches)) {
$data[$matches[1]] = $data[$k]; unset($data[$k]);
}
}
$str = json_encode($data, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE) . "\n";
echo $str;
file_put_contents($f, $str);
'
- name: Commit
run: |
git config --global user.name "$(git show -s --format='%an')"
git config --global user.email "$(git show -s --format='%ae')"
git add . -N && (git diff --exit-code || git commit -a -m "Branch for stable release")
- name: Push
uses: ad-m/github-push-action@master
with:
branch: ${{ github.ref }}
github_token: ${{ secrets.GITHUB_TOKEN }}
44 changes: 0 additions & 44 deletions .github/workflows/bundler.yml

This file was deleted.

16 changes: 0 additions & 16 deletions .github/workflows/release-drafter.yml

This file was deleted.

Loading

0 comments on commit cbdb1c9

Please sign in to comment.