mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-19 10:53:37 +00:00
Merge branch 'main' into v6.2
This commit is contained in:
27
.github/workflows/release.yml
vendored
27
.github/workflows/release.yml
vendored
@@ -4,9 +4,13 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
version:
|
version:
|
||||||
description: 'Release "v1.2.3" or "develop"'
|
description: 'Release "v1.2.3" or "develop" or "branch-abc"'
|
||||||
required: true
|
required: true
|
||||||
default: 'develop'
|
default: 'develop'
|
||||||
|
phpversion:
|
||||||
|
description: 'PHP version'
|
||||||
|
required: true
|
||||||
|
default: '8.3'
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 3 * * MON'
|
- cron: '0 3 * * MON'
|
||||||
|
|
||||||
@@ -23,6 +27,11 @@ jobs:
|
|||||||
if [[ "develop" == "$version" ]]; then
|
if [[ "develop" == "$version" ]]; then
|
||||||
git checkout --track origin/develop
|
git checkout --track origin/develop
|
||||||
git pull
|
git pull
|
||||||
|
elif [[ "$version" == branch* ]]; then
|
||||||
|
PULLBRANCH=${version:7}
|
||||||
|
echo "The branch is '$PULLBRANCH' ($version)"
|
||||||
|
git checkout --track origin/$PULLBRANCH
|
||||||
|
git pull
|
||||||
else
|
else
|
||||||
git config user.name github-actions
|
git config user.name github-actions
|
||||||
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
|
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
|
||||||
@@ -36,7 +45,7 @@ jobs:
|
|||||||
- name: Setup PHP
|
- name: Setup PHP
|
||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
with:
|
with:
|
||||||
php-version: '8.3'
|
php-version: ${{ github.event.inputs.phpversion }}
|
||||||
extensions: mbstring, intl, zip, bcmath
|
extensions: mbstring, intl, zip, bcmath
|
||||||
- name: crowdin action
|
- name: crowdin action
|
||||||
uses: crowdin/github-action@v2
|
uses: crowdin/github-action@v2
|
||||||
@@ -133,7 +142,7 @@ jobs:
|
|||||||
rm -rf vendor composer.lock
|
rm -rf vendor composer.lock
|
||||||
composer update --no-dev --no-scripts --no-plugins -q
|
composer update --no-dev --no-scripts --no-plugins -q
|
||||||
sudo chown -R runner:docker resources/lang
|
sudo chown -R runner:docker resources/lang
|
||||||
.ci/phpcs.sh
|
.ci/phpcs.sh || true
|
||||||
- name: Import GPG key
|
- name: Import GPG key
|
||||||
uses: crazy-max/ghaction-import-gpg@v6
|
uses: crazy-max/ghaction-import-gpg@v6
|
||||||
with:
|
with:
|
||||||
@@ -166,6 +175,16 @@ jobs:
|
|||||||
tarName=FireflyIII-develop.tar.gz
|
tarName=FireflyIII-develop.tar.gz
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# if this is a branch build, also slightly different variable names.
|
||||||
|
if [[ "$version" == branch* ]]; then
|
||||||
|
[[ -z $(git status --untracked-files=normal --porcelain) ]] && echo "this branch is clean, no need to push..." && exit 0;
|
||||||
|
# branch builds overrule develop
|
||||||
|
releaseName=develop-$(date +'%Y%m%d')
|
||||||
|
originalName=$releaseName
|
||||||
|
zipName=FireflyIII-develop.zip
|
||||||
|
tarName=FireflyIII-develop.tar.gz
|
||||||
|
fi
|
||||||
|
|
||||||
# in both cases, if the release or tag already exists, add ".1" until it no longer exists.
|
# in both cases, if the release or tag already exists, add ".1" until it no longer exists.
|
||||||
tagFound=true
|
tagFound=true
|
||||||
tagCount=1
|
tagCount=1
|
||||||
@@ -208,7 +227,7 @@ jobs:
|
|||||||
gpg --armor --detach-sign $tarName
|
gpg --armor --detach-sign $tarName
|
||||||
|
|
||||||
# create a development (nightly) release:
|
# create a development (nightly) release:
|
||||||
if [[ "develop" == "$version" ]]; then
|
if [[ "develop" == "$version" ]] || [[ "$version" == branch* ]]; then
|
||||||
echo 'Develop release.'
|
echo 'Develop release.'
|
||||||
# add text to output.txt (instructions)
|
# add text to output.txt (instructions)
|
||||||
rm output.txt
|
rm output.txt
|
||||||
|
4
composer.lock
generated
4
composer.lock
generated
@@ -13947,7 +13947,7 @@
|
|||||||
],
|
],
|
||||||
"aliases": [],
|
"aliases": [],
|
||||||
"minimum-stability": "stable",
|
"minimum-stability": "stable",
|
||||||
"stability-flags": {},
|
"stability-flags": [],
|
||||||
"prefer-stable": false,
|
"prefer-stable": false,
|
||||||
"prefer-lowest": false,
|
"prefer-lowest": false,
|
||||||
"platform": {
|
"platform": {
|
||||||
@@ -13968,6 +13968,6 @@
|
|||||||
"ext-xml": "*",
|
"ext-xml": "*",
|
||||||
"ext-xmlwriter": "*"
|
"ext-xmlwriter": "*"
|
||||||
},
|
},
|
||||||
"platform-dev": {},
|
"platform-dev": [],
|
||||||
"plugin-api-version": "2.6.0"
|
"plugin-api-version": "2.6.0"
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user