mirror of
https://github.com/egor-white/zaprett.git
synced 2025-12-19 09:49:46 +05:00
update workflow
This commit is contained in:
55
.github/workflows/workflow.yml
vendored
55
.github/workflows/workflow.yml
vendored
@@ -4,15 +4,21 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
tag:
|
tag:
|
||||||
description: 'Tag for the release'
|
description: 'Tag for the release (x.x.x)'
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
version:
|
||||||
|
description: 'Module version (x.x)'
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
version_code:
|
||||||
|
description: 'Module version code (xx)'
|
||||||
release_name:
|
release_name:
|
||||||
description: 'Release Name'
|
description: 'Release Name'
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
release_notes:
|
release_changes:
|
||||||
description: 'Release Notes'
|
description: 'Release Changes'
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
@@ -73,6 +79,49 @@ jobs:
|
|||||||
cp lists/list-discord.txt zaprett-extended/system/etc/zaprett/lists/
|
cp lists/list-discord.txt zaprett-extended/system/etc/zaprett/lists/
|
||||||
|
|
||||||
cp lists/list-extended.txt zaprett-extended/system/etc/zaprett/lists/
|
cp lists/list-extended.txt zaprett-extended/system/etc/zaprett/lists/
|
||||||
|
|
||||||
|
- name: Create module.prop
|
||||||
|
run: |
|
||||||
|
cat > zaprett/module.prop <<EOF
|
||||||
|
id=zaprett
|
||||||
|
name=zaprett
|
||||||
|
version=${{ inputs.version }}
|
||||||
|
versionCode=${{ inputs.version_code }}
|
||||||
|
author=egor-white, Huananzhi X99, Cherret
|
||||||
|
description=Ускорение CDN серверов Google. ТГК: https://t.me/zaprett_module
|
||||||
|
updateJson=https://raw.githubusercontent.com/egor-white/zaprett/refs/heads/main/update.json
|
||||||
|
EOF
|
||||||
|
|
||||||
|
cat > zaprett-extended/module.prop <<EOF
|
||||||
|
id=zaprett
|
||||||
|
name=zaprett-extended
|
||||||
|
version=${{ inputs.version }}
|
||||||
|
versionCode=${{ inputs.version_code }}
|
||||||
|
author=egor-white, Huananzhi X99, Cherret
|
||||||
|
description=Ускорение CDN серверов Google. ТГК: https://t.me/zaprett_module
|
||||||
|
updateJson=https://raw.githubusercontent.com/egor-white/zaprett/refs/heads/main/update-extended.json
|
||||||
|
EOF
|
||||||
|
|
||||||
|
cat > zaprett-tv/module.prop <<EOF
|
||||||
|
id=zaprett
|
||||||
|
name=zaprett-tv
|
||||||
|
version=${{ inputs.version }}
|
||||||
|
versionCode=${{ inputs.version_code }}
|
||||||
|
author=egor-white, Huananzhi X99, Cherret
|
||||||
|
description=Ускорение CDN серверов Google. ТГК: https://t.me/zaprett_module
|
||||||
|
updateJson=https://raw.githubusercontent.com/egor-white/zaprett/refs/heads/main/update-tv.json
|
||||||
|
EOF
|
||||||
|
cat zaprett/module.prop
|
||||||
|
|
||||||
- name: Tree files
|
- name: Tree files
|
||||||
run: |
|
run: |
|
||||||
tree zaprett/ zaprett-extended/ zaprett-tv/
|
tree zaprett/ zaprett-extended/ zaprett-tv/
|
||||||
|
- name: Create archives
|
||||||
|
run: |
|
||||||
|
zip zaprett.zip zaprett/* -r
|
||||||
|
zip zaprett-extended.zip zaprett-extended/* -r
|
||||||
|
zip zaprett-tv.zip zaprett-tv/* -r
|
||||||
|
|
||||||
|
mv zaprett.zip out/
|
||||||
|
mv zaprett-extended.zip out/
|
||||||
|
mv zaprett-tv.zip out/
|
||||||
Reference in New Issue
Block a user