mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-17 01:42:19 +00:00
Should work from here
This commit is contained in:
19
.github/workflows/release.yml
vendored
19
.github/workflows/release.yml
vendored
@@ -7,6 +7,10 @@ on:
|
|||||||
description: 'Release "v1.2.3" or "develop" or "branch-abc"'
|
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'
|
||||||
|
|
||||||
@@ -36,13 +40,12 @@ jobs:
|
|||||||
git checkout main
|
git checkout main
|
||||||
git merge develop
|
git merge develop
|
||||||
fi
|
fi
|
||||||
exit 1
|
|
||||||
env:
|
env:
|
||||||
version: ${{ github.event_name == 'schedule' && 'develop' || github.event.inputs.version }}
|
version: ${{ github.event_name == 'schedule' && 'develop' || github.event.inputs.version }}
|
||||||
- name: Setup PHP
|
- name: Setup PHP
|
||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
with:
|
with:
|
||||||
php-version: '8.4'
|
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
|
||||||
@@ -172,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
|
||||||
@@ -214,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
|
||||||
|
Reference in New Issue
Block a user