mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-16 09:22:33 +00:00
Never mind lol.
This commit is contained in:
118
.github/workflows/release.yml
vendored
118
.github/workflows/release.yml
vendored
@@ -15,7 +15,7 @@ on:
|
|||||||
- cron: '0 3 * * MON'
|
- cron: '0 3 * * MON'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
prepare:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -59,27 +59,6 @@ jobs:
|
|||||||
git config user.email release@firefly-iii.org
|
git config user.email release@firefly-iii.org
|
||||||
git config advice.addIgnoredFile false
|
git config advice.addIgnoredFile false
|
||||||
git config push.autoSetupRemote true
|
git config push.autoSetupRemote true
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
rm -rf vendor composer.lock
|
|
||||||
composer update --no-dev --no-scripts --no-plugins -q
|
|
||||||
validate:
|
|
||||||
needs:
|
|
||||||
- prepare
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Run PHP Coding Standards Fixer
|
|
||||||
run: |
|
|
||||||
.ci/phpcs.sh || true
|
|
||||||
- name: Code cleanup
|
|
||||||
id: code-cleanup
|
|
||||||
uses: JC5/firefly-iii-dev@main
|
|
||||||
with:
|
|
||||||
action: 'ff3:code'
|
|
||||||
output: ''
|
|
||||||
env:
|
|
||||||
FIREFLY_III_ROOT: /github/workspace
|
|
||||||
GH_TOKEN: ''
|
|
||||||
- name: Lint PHP
|
- name: Lint PHP
|
||||||
run: |
|
run: |
|
||||||
php_lint_file()
|
php_lint_file()
|
||||||
@@ -95,18 +74,13 @@ jobs:
|
|||||||
|
|
||||||
export -f php_lint_file
|
export -f php_lint_file
|
||||||
|
|
||||||
find . -path ./vendor -prune -o -name '*.php' | parallel -j 8 php_lint_file {}
|
find . -path ./vendor -prune -o -name '*.php' | parallel -j 4 php_lint_file {}
|
||||||
|
|
||||||
if [ "$?" -ne 0 ]
|
if [ "$?" -ne 0 ]
|
||||||
then
|
then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
translate:
|
- name: Crowdin action
|
||||||
needs:
|
|
||||||
- prepare
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Download translations
|
|
||||||
uses: crowdin/github-action@v2
|
uses: crowdin/github-action@v2
|
||||||
with:
|
with:
|
||||||
upload_sources: true
|
upload_sources: true
|
||||||
@@ -117,41 +91,6 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ github.token }}
|
GITHUB_TOKEN: ${{ github.token }}
|
||||||
CROWDIN_PROJECT_NR: ${{ secrets.CROWDIN_PROJECT_NR }}
|
CROWDIN_PROJECT_NR: ${{ secrets.CROWDIN_PROJECT_NR }}
|
||||||
CROWDIN_TOKEN: ${{ secrets.CROWDIN_TOKEN }}
|
CROWDIN_TOKEN: ${{ secrets.CROWDIN_TOKEN }}
|
||||||
- name: Generate JSON v1
|
|
||||||
id: json-v1
|
|
||||||
uses: JC5/firefly-iii-dev@main
|
|
||||||
with:
|
|
||||||
action: 'ff3:json-translations v1'
|
|
||||||
output: ''
|
|
||||||
env:
|
|
||||||
FIREFLY_III_ROOT: /github/workspace
|
|
||||||
GH_TOKEN: ''
|
|
||||||
- name: Generate JSON v2
|
|
||||||
id: json-v2
|
|
||||||
uses: JC5/firefly-iii-dev@main
|
|
||||||
with:
|
|
||||||
action: 'ff3:json-translations v2'
|
|
||||||
output: ''
|
|
||||||
env:
|
|
||||||
FIREFLY_III_ROOT: /github/workspace
|
|
||||||
GH_TOKEN: ''
|
|
||||||
generate-js:
|
|
||||||
needs:
|
|
||||||
- prepare
|
|
||||||
- translate
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Build JS
|
|
||||||
run: |
|
|
||||||
npm install
|
|
||||||
npm run prod --workspace=v1
|
|
||||||
npm run build --workspace=v2
|
|
||||||
npm update
|
|
||||||
cleanup-meta:
|
|
||||||
needs:
|
|
||||||
- prepare
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Cleanup changelog
|
- name: Cleanup changelog
|
||||||
id: cleanup-changelog
|
id: cleanup-changelog
|
||||||
uses: JC5/firefly-iii-dev@main
|
uses: JC5/firefly-iii-dev@main
|
||||||
@@ -180,10 +119,48 @@ jobs:
|
|||||||
FIREFLY_III_ROOT: /github/workspace
|
FIREFLY_III_ROOT: /github/workspace
|
||||||
GH_TOKEN: ""
|
GH_TOKEN: ""
|
||||||
FF_III_VERSION: ${{ github.event_name == 'schedule' && 'develop' || github.event.inputs.version }}
|
FF_III_VERSION: ${{ github.event_name == 'schedule' && 'develop' || github.event.inputs.version }}
|
||||||
|
- name: Generate JSON v1
|
||||||
|
id: json-v1
|
||||||
|
uses: JC5/firefly-iii-dev@main
|
||||||
|
with:
|
||||||
|
action: 'ff3:json-translations v1'
|
||||||
|
output: ''
|
||||||
|
env:
|
||||||
|
FIREFLY_III_ROOT: /github/workspace
|
||||||
|
GH_TOKEN: ''
|
||||||
|
- name: Generate JSON v2
|
||||||
|
id: json-v2
|
||||||
|
uses: JC5/firefly-iii-dev@main
|
||||||
|
with:
|
||||||
|
action: 'ff3:json-translations v2'
|
||||||
|
output: ''
|
||||||
|
env:
|
||||||
|
FIREFLY_III_ROOT: /github/workspace
|
||||||
|
GH_TOKEN: ''
|
||||||
|
- name: Code cleanup
|
||||||
|
id: code-cleanup
|
||||||
|
uses: JC5/firefly-iii-dev@main
|
||||||
|
with:
|
||||||
|
action: 'ff3:code'
|
||||||
|
output: ''
|
||||||
|
env:
|
||||||
|
FIREFLY_III_ROOT: /github/workspace
|
||||||
|
GH_TOKEN: ''
|
||||||
|
- name: Build JS
|
||||||
|
run: |
|
||||||
|
npm install
|
||||||
|
npm run prod --workspace=v1
|
||||||
|
npm run build --workspace=v2
|
||||||
|
npm update
|
||||||
|
- name: Run CI
|
||||||
|
run: |
|
||||||
|
rm -rf vendor composer.lock
|
||||||
|
composer update --no-dev --no-scripts --no-plugins -q
|
||||||
|
sudo chown -R runner:docker resources/lang
|
||||||
|
.ci/phpcs.sh || true
|
||||||
- name: Calculate variables
|
- name: Calculate variables
|
||||||
run: |
|
run: |
|
||||||
ls
|
|
||||||
pwd
|
|
||||||
# set some variables
|
# set some variables
|
||||||
releaseName=$version
|
releaseName=$version
|
||||||
originalName=$version
|
originalName=$version
|
||||||
@@ -245,15 +222,6 @@ jobs:
|
|||||||
echo "BRANCH_NAME=$BRANCH_NAME" >> "$GITHUB_ENV"
|
echo "BRANCH_NAME=$BRANCH_NAME" >> "$GITHUB_ENV"
|
||||||
env:
|
env:
|
||||||
version: ${{ github.event_name == 'schedule' && 'develop' || github.event.inputs.version }}
|
version: ${{ github.event_name == 'schedule' && 'develop' || github.event.inputs.version }}
|
||||||
build:
|
|
||||||
needs:
|
|
||||||
- prepare
|
|
||||||
- validate
|
|
||||||
- translate
|
|
||||||
- generate-js
|
|
||||||
- cleanup-meta
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Commit all changes
|
- name: Commit all changes
|
||||||
run: |
|
run: |
|
||||||
# add all content, except output.txt (this contains the changelog and/or the download instructions)
|
# add all content, except output.txt (this contains the changelog and/or the download instructions)
|
||||||
|
Reference in New Issue
Block a user