Elesh Vaishnav
commited on
Upload 7 files
Browse files- .github/FUNDING.yml +13 -0
- .github/ISSUE_TEMPLATE/BUG.yml +88 -0
- .github/ISSUE_TEMPLATE/FEATURE.yml +37 -0
- .github/PULL_REQUEST_TEMPLATE.md +37 -0
- .github/workflows/code_formatter.yml +57 -0
- .github/workflows/pre_compiled.yml +61 -0
- .github/workflows/release.yml +184 -0
.github/FUNDING.yml
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# These are supported funding model platforms
|
| 2 |
+
|
| 3 |
+
github: #
|
| 4 |
+
patreon: # Replace with a single Patreon username
|
| 5 |
+
open_collective: # Replace with a single Open Collective username
|
| 6 |
+
ko_fi: iahispano
|
| 7 |
+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
|
| 8 |
+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
| 9 |
+
liberapay: # Replace with a single Liberapay username
|
| 10 |
+
issuehunt: # Replace with a single IssueHunt username
|
| 11 |
+
otechie: # Replace with a single Otechie username
|
| 12 |
+
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
|
| 13 |
+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
.github/ISSUE_TEMPLATE/BUG.yml
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: Bug report
|
| 2 |
+
description: Report a problem you encountered
|
| 3 |
+
title: "[Bug]: "
|
| 4 |
+
labels: ["bug"]
|
| 5 |
+
body:
|
| 6 |
+
- type: input
|
| 7 |
+
id: project
|
| 8 |
+
attributes:
|
| 9 |
+
label: Project Version
|
| 10 |
+
description: Which project versions are affected?
|
| 11 |
+
placeholder: "3.2.1, 3.2.2, 3.2.3"
|
| 12 |
+
validations:
|
| 13 |
+
required: true
|
| 14 |
+
- type: input
|
| 15 |
+
id: platform
|
| 16 |
+
attributes:
|
| 17 |
+
label: Platform and OS Version
|
| 18 |
+
description: Which platforms or operating systems are affected?
|
| 19 |
+
placeholder: "Windows 10 64-bit, Firefox 123"
|
| 20 |
+
validations:
|
| 21 |
+
required: true
|
| 22 |
+
- type: input
|
| 23 |
+
id: devices
|
| 24 |
+
attributes:
|
| 25 |
+
label: Affected Devices
|
| 26 |
+
description: Does this only occur on specific devices?
|
| 27 |
+
placeholder: "All, iPhone X, iPhone SE, iPad Air, MacBook Pro"
|
| 28 |
+
validations:
|
| 29 |
+
required: true
|
| 30 |
+
- type: input
|
| 31 |
+
id: existing-issues
|
| 32 |
+
attributes:
|
| 33 |
+
label: Existing Issues
|
| 34 |
+
description: Are there any similar existing issues?
|
| 35 |
+
placeholder: "#69"
|
| 36 |
+
validations:
|
| 37 |
+
required: false
|
| 38 |
+
- type: textarea
|
| 39 |
+
id: what-happened
|
| 40 |
+
attributes:
|
| 41 |
+
label: What happened?
|
| 42 |
+
description: Clearly and concisely describe the bug.
|
| 43 |
+
placeholder: Tell us what happened.
|
| 44 |
+
validations:
|
| 45 |
+
required: true
|
| 46 |
+
- type: textarea
|
| 47 |
+
id: repro-steps
|
| 48 |
+
attributes:
|
| 49 |
+
label: Steps to reproduce
|
| 50 |
+
value: |
|
| 51 |
+
1.
|
| 52 |
+
2.
|
| 53 |
+
3.
|
| 54 |
+
...
|
| 55 |
+
validations:
|
| 56 |
+
required: true
|
| 57 |
+
- type: textarea
|
| 58 |
+
id: expected-behavior
|
| 59 |
+
attributes:
|
| 60 |
+
label: Expected behavior
|
| 61 |
+
description: What should have happened?
|
| 62 |
+
placeholder: What did you expect to happen?
|
| 63 |
+
validations:
|
| 64 |
+
required: true
|
| 65 |
+
- type: textarea
|
| 66 |
+
id: attachments
|
| 67 |
+
attributes:
|
| 68 |
+
label: Attachments
|
| 69 |
+
description: Please include code snippets, stack traces, or compiler errors.
|
| 70 |
+
placeholder: Paste code snippets, stack traces, and compiler errors here
|
| 71 |
+
validations:
|
| 72 |
+
required: false
|
| 73 |
+
- type: textarea
|
| 74 |
+
id: screenshots
|
| 75 |
+
attributes:
|
| 76 |
+
label: Screenshots or Videos
|
| 77 |
+
description: Add screenshots, gifs, or videos to help explain your problem.
|
| 78 |
+
placeholder: Upload screenshots, gifs, and videos here
|
| 79 |
+
validations:
|
| 80 |
+
required: false
|
| 81 |
+
- type: textarea
|
| 82 |
+
id: additional
|
| 83 |
+
attributes:
|
| 84 |
+
label: Additional Information
|
| 85 |
+
description: Add any other useful information about the problem here.
|
| 86 |
+
placeholder: Is there any additional helpful information you can share?
|
| 87 |
+
validations:
|
| 88 |
+
required: false
|
.github/ISSUE_TEMPLATE/FEATURE.yml
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: Feature request
|
| 2 |
+
description: Suggest an idea for this project
|
| 3 |
+
title: "[Feature]: "
|
| 4 |
+
labels: ["feature request", "enhancement", "feature"]
|
| 5 |
+
body:
|
| 6 |
+
- type: textarea
|
| 7 |
+
id: description
|
| 8 |
+
attributes:
|
| 9 |
+
label: Description
|
| 10 |
+
description: Clearly and concisely describe what you would like to change, add, or implement.
|
| 11 |
+
placeholder: Tell us your idea.
|
| 12 |
+
validations:
|
| 13 |
+
required: true
|
| 14 |
+
- type: textarea
|
| 15 |
+
id: problem
|
| 16 |
+
attributes:
|
| 17 |
+
label: Problem
|
| 18 |
+
description: Is your feature request related to a problem?
|
| 19 |
+
placeholder: What problem will this solve?
|
| 20 |
+
validations:
|
| 21 |
+
required: true
|
| 22 |
+
- type: textarea
|
| 23 |
+
id: solution
|
| 24 |
+
attributes:
|
| 25 |
+
label: Proposed Solution
|
| 26 |
+
description: How should this be solved?
|
| 27 |
+
placeholder: How do you think this should be implemented?
|
| 28 |
+
validations:
|
| 29 |
+
required: true
|
| 30 |
+
- type: textarea
|
| 31 |
+
id: alternatives
|
| 32 |
+
attributes:
|
| 33 |
+
label: Alternatives Considered
|
| 34 |
+
description: Are there other possible approaches?
|
| 35 |
+
placeholder: Can you think of any other options?
|
| 36 |
+
validations:
|
| 37 |
+
required: true
|
.github/PULL_REQUEST_TEMPLATE.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!--- Provide a general summary of your changes in the Title above -->
|
| 2 |
+
|
| 3 |
+
## Description
|
| 4 |
+
|
| 5 |
+
<!--- Describe your changes in detail -->
|
| 6 |
+
|
| 7 |
+
## Motivation and Context
|
| 8 |
+
|
| 9 |
+
<!--- Why is this change required? What problem does it solve? -->
|
| 10 |
+
<!--- If it fixes an open issue, please link to the issue here. -->
|
| 11 |
+
|
| 12 |
+
## How has this been tested?
|
| 13 |
+
|
| 14 |
+
<!--- Please describe in detail how you tested your changes. -->
|
| 15 |
+
<!--- Include details of your testing environment, tests ran to see how -->
|
| 16 |
+
<!--- your change affects other areas of the code, etc. -->
|
| 17 |
+
|
| 18 |
+
## Screenshots (if appropriate):
|
| 19 |
+
|
| 20 |
+
## Types of changes
|
| 21 |
+
|
| 22 |
+
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
|
| 23 |
+
|
| 24 |
+
- [ ] Bug fix (non-breaking change which fixes an issue)
|
| 25 |
+
- [ ] New feature (non-breaking change which adds functionality)
|
| 26 |
+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
|
| 27 |
+
|
| 28 |
+
## Checklist:
|
| 29 |
+
|
| 30 |
+
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
|
| 31 |
+
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
|
| 32 |
+
|
| 33 |
+
- [ ] My code follows the code style of this project.
|
| 34 |
+
- [ ] My change requires a change to the documentation.
|
| 35 |
+
- [ ] I have updated the documentation accordingly.
|
| 36 |
+
- [ ] I have added tests to cover my changes.
|
| 37 |
+
- [ ] All new and existing tests passed.
|
.github/workflows/code_formatter.yml
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: Code Formatter
|
| 2 |
+
|
| 3 |
+
on:
|
| 4 |
+
push:
|
| 5 |
+
branches:
|
| 6 |
+
- main
|
| 7 |
+
paths:
|
| 8 |
+
- '**/*.py'
|
| 9 |
+
- '**/*.ipynb'
|
| 10 |
+
- '.github/workflows/code_formatter.yml'
|
| 11 |
+
|
| 12 |
+
jobs:
|
| 13 |
+
push_format:
|
| 14 |
+
runs-on: ubuntu-latest
|
| 15 |
+
|
| 16 |
+
permissions:
|
| 17 |
+
contents: write
|
| 18 |
+
pull-requests: write
|
| 19 |
+
|
| 20 |
+
steps:
|
| 21 |
+
- uses: actions/checkout@v4
|
| 22 |
+
with:
|
| 23 |
+
ref: ${{github.ref_name}}
|
| 24 |
+
|
| 25 |
+
- name: Set up Python ${{ matrix.python-version }}
|
| 26 |
+
uses: actions/setup-python@v5
|
| 27 |
+
with:
|
| 28 |
+
python-version: ${{ matrix.python-version }}
|
| 29 |
+
|
| 30 |
+
- name: Install Black and autoflake
|
| 31 |
+
run: pip install "black[jupyter]" autoflake
|
| 32 |
+
|
| 33 |
+
- name: Run autoflake
|
| 34 |
+
run: autoflake --in-place --recursive .
|
| 35 |
+
|
| 36 |
+
- name: Run Black
|
| 37 |
+
run: black . --exclude=".*\.ipynb$"
|
| 38 |
+
|
| 39 |
+
- name: Commit Back
|
| 40 |
+
continue-on-error: true
|
| 41 |
+
id: commitback
|
| 42 |
+
run: |
|
| 43 |
+
git config --local user.email "github-actions[bot]@users.noreply.github.com"
|
| 44 |
+
git config --local user.name "github-actions[bot]"
|
| 45 |
+
git add --all
|
| 46 |
+
git commit -m "chore(format): run black on ${{github.ref_name}}"
|
| 47 |
+
|
| 48 |
+
- name: Create Pull Request
|
| 49 |
+
if: steps.commitback.outcome == 'success'
|
| 50 |
+
continue-on-error: true
|
| 51 |
+
uses: peter-evans/create-pull-request@v5
|
| 52 |
+
with:
|
| 53 |
+
delete-branch: true
|
| 54 |
+
body: "Automatically apply code formatter change"
|
| 55 |
+
title: "chore(format): run black on ${{github.ref_name}}"
|
| 56 |
+
commit-message: "chore(format): run black on ${{github.ref_name}}"
|
| 57 |
+
branch: formatter/${{github.ref_name}}
|
.github/workflows/pre_compiled.yml
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: Pre-Compiled and Upload
|
| 2 |
+
|
| 3 |
+
on:
|
| 4 |
+
workflow_dispatch:
|
| 5 |
+
|
| 6 |
+
concurrency:
|
| 7 |
+
group: ${{ github.workflow }}-${{ github.ref }}
|
| 8 |
+
cancel-in-progress: true
|
| 9 |
+
|
| 10 |
+
jobs:
|
| 11 |
+
Windows:
|
| 12 |
+
runs-on: windows-latest
|
| 13 |
+
strategy:
|
| 14 |
+
matrix:
|
| 15 |
+
python-version: ["3.11"]
|
| 16 |
+
|
| 17 |
+
steps:
|
| 18 |
+
- uses: actions/checkout@v4
|
| 19 |
+
- name: Set up Python ${{ matrix.python-version }}
|
| 20 |
+
uses: actions/setup-python@v5
|
| 21 |
+
with:
|
| 22 |
+
python-version: ${{ matrix.python-version }}
|
| 23 |
+
- name: Install dependencies
|
| 24 |
+
run: |
|
| 25 |
+
.\run-install.bat
|
| 26 |
+
.\env\python.exe core.py "prerequisites" --pretraineds_hifigan "True" --models "True" --exe "True"
|
| 27 |
+
- name: Clean up unnecessary files
|
| 28 |
+
run: |
|
| 29 |
+
Remove-Item -Path 'LICENSE', 'run-tensorboard.sh', 'run-install.sh', 'run-applio.sh', 'run-install.bat', 'requirements.txt', '.gitignore', '.github', '.git' -Recurse -Force -ErrorAction SilentlyContinue
|
| 30 |
+
Get-ChildItem -Path . -Include __pycache__ -Recurse -Directory | Remove-Item -Force -Recurse -ErrorAction SilentlyContinue
|
| 31 |
+
- name: Read version from config.json
|
| 32 |
+
id: get-version
|
| 33 |
+
run: |
|
| 34 |
+
$version = (Get-Content -Path './assets/config.json' | ConvertFrom-Json).version
|
| 35 |
+
echo "version=$version" >> $env:GITHUB_OUTPUT
|
| 36 |
+
- name: Create ZIP file
|
| 37 |
+
run: |
|
| 38 |
+
$version = '${{ steps.get-version.outputs.version }}'
|
| 39 |
+
Compress-Archive -Path 'D:\a\Applio\Applio\*' -DestinationPath "D:\a\Applio\ApplioV$version.zip"
|
| 40 |
+
- name: Upload Windows Compiled
|
| 41 |
+
env:
|
| 42 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 43 |
+
version: ${{ steps.get-version.outputs.version }}
|
| 44 |
+
run: |
|
| 45 |
+
.\env\python.exe -c "
|
| 46 |
+
import os
|
| 47 |
+
from huggingface_hub import login, upload_file
|
| 48 |
+
|
| 49 |
+
token = os.getenv('HF_TOKEN')
|
| 50 |
+
version = os.getenv('version')
|
| 51 |
+
login(token)
|
| 52 |
+
repo_id = 'IAHispano/Applio'
|
| 53 |
+
repo_file_path = f'D:/a/Applio/ApplioV{version}.zip'
|
| 54 |
+
|
| 55 |
+
upload_file(
|
| 56 |
+
commit_message=f'{version}',
|
| 57 |
+
path_or_fileobj=repo_file_path,
|
| 58 |
+
path_in_repo=f'Compiled/Windows/ApplioV{version}.zip',
|
| 59 |
+
repo_id=repo_id,
|
| 60 |
+
token=token)
|
| 61 |
+
"
|
.github/workflows/release.yml
ADDED
|
@@ -0,0 +1,184 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: Release
|
| 2 |
+
|
| 3 |
+
on:
|
| 4 |
+
push:
|
| 5 |
+
branches:
|
| 6 |
+
- main
|
| 7 |
+
- master
|
| 8 |
+
paths:
|
| 9 |
+
- 'assets/config.json'
|
| 10 |
+
- '.github/workflows/release.yml'
|
| 11 |
+
|
| 12 |
+
jobs:
|
| 13 |
+
release:
|
| 14 |
+
name: Release
|
| 15 |
+
runs-on: ubuntu-latest
|
| 16 |
+
steps:
|
| 17 |
+
- name: Check out the repository
|
| 18 |
+
uses: actions/checkout@v4
|
| 19 |
+
with:
|
| 20 |
+
fetch-depth: 2
|
| 21 |
+
|
| 22 |
+
- name: Set up Python
|
| 23 |
+
uses: actions/setup-python@v5
|
| 24 |
+
with:
|
| 25 |
+
python-version: "3.8"
|
| 26 |
+
|
| 27 |
+
- name: Detect and tag new version
|
| 28 |
+
id: check-version
|
| 29 |
+
uses: salsify/action-detect-and-tag-new-version@v2.0.3
|
| 30 |
+
with:
|
| 31 |
+
tag-template: "{VERSION}"
|
| 32 |
+
version-command: |
|
| 33 |
+
bash -o pipefail -c "cat ./assets/config.json | jq -r '.version'"
|
| 34 |
+
|
| 35 |
+
- name: Create CHANGELOG.md
|
| 36 |
+
if: steps.check-version.outputs.tag
|
| 37 |
+
run: |
|
| 38 |
+
cd /home/runner/work/Applio/Applio
|
| 39 |
+
cat > CHANGELOG.md << EOF
|
| 40 |
+
## Important Installation Guidelines
|
| 41 |
+
|
| 42 |
+
### Before You Install Applio
|
| 43 |
+
Please review these essential instructions to ensure a smooth installation:
|
| 44 |
+
|
| 45 |
+
- **File Location**: Place the Applio files in a dedicated folder on your C drive.
|
| 46 |
+
- **Access Control**: Avoid placing Applio in folders that require elevated privileges.
|
| 47 |
+
- **Administrator Rights**: Do not run the \`run-install.bat\` script with administrator privileges.
|
| 48 |
+
- **Path Requirements**: Ensure the installation path is free of spaces or special characters.
|
| 49 |
+
- **Security Settings**: Temporarily disable your antivirus and firewall to prevent any issues with missing dependencies during installation.
|
| 50 |
+
|
| 51 |
+
### Installation Steps
|
| 52 |
+
- **Download Compiled Version**: Get the zip from [this link](https://huggingface.co/IAHispano/Applio/resolve/main/Compiled/Windows/ApplioV${{ steps.check-version.outputs.tag }}.zip).
|
| 53 |
+
- **Run Applio**: Extract the `.zip` file, then open the \`run-applio.bat\` file.
|
| 54 |
+
|
| 55 |
+
**Full Changelog**: https://github.com/IAHispano/Applio/compare/${{ steps.check-version.outputs.previous-version }}...${{ steps.check-version.outputs.tag }}
|
| 56 |
+
|
| 57 |
+
EOF
|
| 58 |
+
|
| 59 |
+
- name: Get commit history
|
| 60 |
+
if: steps.check-version.outputs.tag
|
| 61 |
+
run: |
|
| 62 |
+
previous_tag="${{ steps.check-version.outputs.previous-version }}"
|
| 63 |
+
echo "Previous Tag: $previous_tag"
|
| 64 |
+
|
| 65 |
+
commit_data=$(curl -s "https://api.github.com/repos/IAHispano/Applio/commits?sha=$previous_tag&per_page=1" \
|
| 66 |
+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}")
|
| 67 |
+
|
| 68 |
+
if [[ "$commit_data" == "[]" ]]; then
|
| 69 |
+
echo "No commits found for tag $previous_tag. Using current date."
|
| 70 |
+
commit_date=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
|
| 71 |
+
else
|
| 72 |
+
commit_date=$(echo "$commit_data" | jq -r '.[0].commit.committer.date')
|
| 73 |
+
fi
|
| 74 |
+
|
| 75 |
+
echo "Fetching commits since: $commit_date"
|
| 76 |
+
curl -s "https://api.github.com/repos/IAHispano/Applio/commits?since=$commit_date&per_page=600" \
|
| 77 |
+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
|
| 78 |
+
| jq -r '.[] | .sha + " " + .commit.message' > commits.txt
|
| 79 |
+
cat commits.txt
|
| 80 |
+
|
| 81 |
+
- name: Summarize changelog with Groq API
|
| 82 |
+
if: steps.check-version.outputs.tag
|
| 83 |
+
id: summarize-changelog
|
| 84 |
+
run: |
|
| 85 |
+
changelog=$(cat commits.txt)
|
| 86 |
+
json_payload=$(jq -n \
|
| 87 |
+
--arg content "$changelog" \
|
| 88 |
+
'{
|
| 89 |
+
messages: [
|
| 90 |
+
{
|
| 91 |
+
role: "system",
|
| 92 |
+
content: "You will receive a commit history. Your task is to extract and present the most relevant changes as a concise list (0-15 items), each item preceded by a bullet point (-). Each entry should be as brief as possible, ideally 1 to 4 words, summarizing the key updates and enhancements. Ignore changes related to .yml files, Git Keep, chore(format), \"colab,\" \"Major fix,\" and phrases like \"Updating Files\" or similar cases (e.g., \"Update Applio (train.py, preprocess.py, core.py)\"). Summarization Rules: Summarize commits like Update ___.py, Fix _____.py, Disable, Delete, or Merge as \"Fixing Code Issues\" and include specific details in parentheses only if they refer to a specific feature, module, or file name. For entries starting with \"Add,\" \"Fix,\" \"Improving,\" \"Improve,\" \"Rework,\" \"Update,\" or \"Updating,\" ensure they are merged into a single entry, with specific details included in parentheses. Ensure the details within parentheses are concise and directly relevant to the change, focusing on the affected feature or module. If multiple commits fall under \"Fixing Code Issues,\" consolidate them into one entry, mentioning only the major areas or modules affected without listing every specific fix. If the commit is related to \"tab\" or \"UI,\" merge it under \"Improving Code\" and include specific details in parentheses if necessary. Replace entries that use phrases like \"Updating Files\" or similar detailed updates (e.g., \"Update Applio (train.py, preprocess.py, core.py)\") with a summary of the actual changes or enhancements made, focusing on the specific impact or feature. Eliminate duplicates by merging similar entries into a single summary where possible. Ensure each entry is distinct and avoids repetition of similar details or terminology. Final Checks: After generating the list, review it to identify and merge any similar entries or duplicates. Ensure that each entry is concise, distinct, and free of redundancy. Limit the list to a maximum of 5 items. Each entry should start with an uppercase letter. Exclude any entries that include \"Major fix\" and ignore them if found. Note: Do not include any commentary or additional text; return only the list. This prompt could be improved by adding examples of commit messages and their expected summaries to provide clearer guidance."
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
role: "user",
|
| 96 |
+
content: $content
|
| 97 |
+
}
|
| 98 |
+
],
|
| 99 |
+
model: "moonshotai/kimi-k2-instruct-0905",
|
| 100 |
+
temperature: 0.6,
|
| 101 |
+
max_tokens: 600,
|
| 102 |
+
top_p: 1,
|
| 103 |
+
stream: false,
|
| 104 |
+
stop: null
|
| 105 |
+
}')
|
| 106 |
+
|
| 107 |
+
echo "json_payload: $json_payload"
|
| 108 |
+
|
| 109 |
+
curl "https://api.groq.com/openai/v1/chat/completions" \
|
| 110 |
+
-X POST \
|
| 111 |
+
-H "Content-Type: application/json" \
|
| 112 |
+
-H "Authorization: Bearer ${{ secrets.GROQ_API_KEY }}" \
|
| 113 |
+
-d "$json_payload" \
|
| 114 |
+
| jq -r '.choices[0].message.content' > summarized_changelog.txt
|
| 115 |
+
|
| 116 |
+
- name: Set up Node.js
|
| 117 |
+
if: steps.check-version.outputs.tag
|
| 118 |
+
uses: actions/setup-node@v4
|
| 119 |
+
with:
|
| 120 |
+
node-version: 18
|
| 121 |
+
|
| 122 |
+
- name: Install gh-release
|
| 123 |
+
if: steps.check-version.outputs.tag
|
| 124 |
+
run: |
|
| 125 |
+
npm install https://github.com/IAHispano/gh-release.git
|
| 126 |
+
|
| 127 |
+
- name: Create package.json
|
| 128 |
+
if: steps.check-version.outputs.tag
|
| 129 |
+
run: |
|
| 130 |
+
cd /home/runner/work/Applio/Applio
|
| 131 |
+
echo '{}' > package.json
|
| 132 |
+
jq \
|
| 133 |
+
--arg version "${{ steps.check-version.outputs.tag }}" \
|
| 134 |
+
--arg url "git+https://github.com/IAHispano/Applio.git" \
|
| 135 |
+
'. + {version: $version, repository: {url: $url}}' \
|
| 136 |
+
package.json > tmp.$$.json && mv tmp.$$.json package.json
|
| 137 |
+
cat package.json
|
| 138 |
+
|
| 139 |
+
- name: Publish release
|
| 140 |
+
if: steps.check-version.outputs.tag
|
| 141 |
+
run: |
|
| 142 |
+
cd /home/runner/work/Applio/Applio && \
|
| 143 |
+
tag_name="${{ steps.check-version.outputs.tag }}"
|
| 144 |
+
changelog=$(cat summarized_changelog.txt)
|
| 145 |
+
GH_RELEASE_GITHUB_API_TOKEN=${{ secrets.GITHUB_TOKEN }} npx gh-release \
|
| 146 |
+
-t "${tag_name}" \
|
| 147 |
+
-n "Applio ${tag_name}" \
|
| 148 |
+
-c "main" \
|
| 149 |
+
-b "## Important Installation Guidelines
|
| 150 |
+
|
| 151 |
+
### Before You Install Applio
|
| 152 |
+
Please review these essential instructions to ensure a smooth installation:
|
| 153 |
+
- **File Location**: Place the Applio files in a dedicated folder on your C drive.
|
| 154 |
+
- **Access Control**: Avoid placing Applio in folders that require elevated privileges.
|
| 155 |
+
- **Administrator Rights**: Do not run the \`run-install.bat\` script with administrator privileges.
|
| 156 |
+
- **Path Requirements**: Ensure the installation path is free of spaces or special characters.
|
| 157 |
+
- **Security Settings**: Temporarily disable your antivirus and firewall to prevent any issues with missing dependencies during installation.
|
| 158 |
+
### Installation Steps
|
| 159 |
+
- **Download Compiled Version**: Get the zip from [this link](https://huggingface.co/IAHispano/Applio/resolve/main/Compiled/Windows/ApplioV${{ steps.check-version.outputs.tag }}.zip).
|
| 160 |
+
- **Run Applio**: Extract the `.zip` file, then open the \`run-applio.bat\` file.
|
| 161 |
+
## What's New in This Release
|
| 162 |
+
${changelog}
|
| 163 |
+
|
| 164 |
+
**Full Changelog**: https://github.com/IAHispano/Applio/compare/${{ steps.check-version.outputs.previous-version }}...${{ steps.check-version.outputs.tag }} " \
|
| 165 |
+
-o "IAHispano" \
|
| 166 |
+
-r "Applio" \
|
| 167 |
+
-w /home/runner/work/Applio/Applio \
|
| 168 |
+
-y
|
| 169 |
+
env:
|
| 170 |
+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
| 171 |
+
|
| 172 |
+
- name: Trigger Pre-Compiled
|
| 173 |
+
if: steps.check-version.outputs.tag
|
| 174 |
+
uses: actions/github-script@v6
|
| 175 |
+
with:
|
| 176 |
+
script: |
|
| 177 |
+
await github.rest.actions.createWorkflowDispatch({
|
| 178 |
+
owner: context.repo.owner,
|
| 179 |
+
repo: context.repo.repo,
|
| 180 |
+
workflow_id: 'pre_compiled.yml',
|
| 181 |
+
ref: context.ref,
|
| 182 |
+
});
|
| 183 |
+
env:
|
| 184 |
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|