From 0abeca4533204ef869edbdb98737763cc10d9788 Mon Sep 17 00:00:00 2001 From: misyaguziya <53165965+misyaguziya@users.noreply.github.com> Date: Sat, 7 Jun 2025 16:26:32 +0900 Subject: [PATCH 1/8] [Add] Create release workflow for VRCT with GitHub Actions --- .github/workflows/release.yml | 75 +++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..f04f9aef --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,75 @@ +name: Release VRCT + +on: + push: + tags: + - 'v*' # タグが 'v' で始まる場合にトリガー (例: v1.0.0) + +jobs: + release: + name: Build VRCT + runs-on: windows-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' # プロジェクトに合わせて調整してください + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.11' # プロジェクトに合わせて調整してください + + - name: Set up Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable # プロジェクトに合わせて調整してください + profile: minimal + override: true + + - name: Install dependencies + run: npm install + + - name: Setup Python environment + run: npm run setup-python + + - name: Build and package + run: npm run release-all + + - name: Get version from tag + id: get_version + run: | + TAG_WITH_V="${GITHUB_REF#refs/tags/}" + echo "VERSION=${TAG_WITH_V#v}" >> $GITHUB_ENV + + - name: Upload to Hugging Face Hub + env: + HF_TOKEN: ${{ secrets.HF_TOKEN }} + run: | + pip install huggingface_hub + huggingface-cli upload misyaguziya/VRCT VRCT.zip VRCT.zip --repo-type dataset --commit-message "Upload VRCT.zip for version ${{ env.VERSION }}" + huggingface-cli upload misyaguziya/VRCT VRCT_cuda.zip VRCT_cuda.zip --repo-type dataset --commit-message "Upload VRCT_cuda.zip for version ${{ env.VERSION }}" + + - name: Create GitHub Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + draft: false + prerelease: false + + - name: Upload Release Asset (NSIS Installer) + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./src-tauri/target/release/bundle/nsis/VRCT_${{ env.VERSION }}_x64-setup.exe + asset_name: VRCT_${{ env.VERSION }}_x64-setup.exe + asset_content_type: application/octet-stream From dfdb0812c352e977b294d51c9f8ec04e71c3a1b2 Mon Sep 17 00:00:00 2001 From: misyaguziya <53165965+misyaguziya@users.noreply.github.com> Date: Sat, 7 Jun 2025 16:26:39 +0900 Subject: [PATCH 2/8] [Update] Bump version to 3.2.0 in tauri configuration --- src-tauri/tauri.conf.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 4d519488..b41c7fd1 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "VRCT", - "version": "3.0.0", + "version": "3.2.0", "identifier": "com.vrct.app", "build": { "beforeDevCommand": "", From a9cc7480ea72d29cb5efd8d81651a996139dace7 Mon Sep 17 00:00:00 2001 From: misyaguziya <53165965+misyaguziya@users.noreply.github.com> Date: Sat, 7 Jun 2025 17:44:10 +0900 Subject: [PATCH 3/8] [Update] Change Node.js version to 22.15.0 in release workflow --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f04f9aef..6fc67de4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,7 +16,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v4 with: - node-version: '20' # プロジェクトに合わせて調整してください + node-version: '22.15.0' # プロジェクトに合わせて調整してください - name: Set up Python uses: actions/setup-python@v5 From 205b5262da67f4232ef0b99303da37c1caa11587 Mon Sep 17 00:00:00 2001 From: misyaguziya <53165965+misyaguziya@users.noreply.github.com> Date: Sat, 7 Jun 2025 18:15:41 +0900 Subject: [PATCH 4/8] [Add] Install Python script dependencies for tqdm --- .github/workflows/release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6fc67de4..d6dca7c4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,6 +36,9 @@ jobs: - name: Setup Python environment run: npm run setup-python + - name: Install Python script dependencies + run: pip install tqdm + - name: Build and package run: npm run release-all From 1be2a1939f92d18d31f2f7e4a791e7b1f80465c2 Mon Sep 17 00:00:00 2001 From: misyaguziya <53165965+misyaguziya@users.noreply.github.com> Date: Sat, 7 Jun 2025 19:57:36 +0900 Subject: [PATCH 5/8] [Update] Refactor version extraction in release workflow to use PowerShell syntax --- .github/workflows/release.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d6dca7c4..2cbe8f32 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -44,9 +44,11 @@ jobs: - name: Get version from tag id: get_version + shell: pwsh # 明示的に PowerShell を指定 run: | - TAG_WITH_V="${GITHUB_REF#refs/tags/}" - echo "VERSION=${TAG_WITH_V#v}" >> $GITHUB_ENV + $TAG_WITH_V = $env:GITHUB_REF -replace "^refs/tags/", "" + $VERSION_NUM = $TAG_WITH_V -replace "^v", "" + echo "VERSION=$VERSION_NUM" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append - name: Upload to Hugging Face Hub env: From 69af7fce22883ee1fe6305c3614cab9dc7ca0f38 Mon Sep 17 00:00:00 2001 From: misyaguziya <53165965+misyaguziya@users.noreply.github.com> Date: Sat, 7 Jun 2025 21:09:02 +0900 Subject: [PATCH 6/8] [Update] Modify commit messages for Hugging Face uploads to include version release emoji --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2cbe8f32..8dbecba0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -55,8 +55,8 @@ jobs: HF_TOKEN: ${{ secrets.HF_TOKEN }} run: | pip install huggingface_hub - huggingface-cli upload misyaguziya/VRCT VRCT.zip VRCT.zip --repo-type dataset --commit-message "Upload VRCT.zip for version ${{ env.VERSION }}" - huggingface-cli upload misyaguziya/VRCT VRCT_cuda.zip VRCT_cuda.zip --repo-type dataset --commit-message "Upload VRCT_cuda.zip for version ${{ env.VERSION }}" + huggingface-cli upload misyaguziya/VRCT VRCT.zip VRCT.zip --repo-type dataset --commit-message "👍️[Update] ${{ env.VERSION }} Release" + huggingface-cli upload misyaguziya/VRCT VRCT_cuda.zip VRCT_cuda.zip --repo-type dataset --commit-message "👍️[Update] ${{ env.VERSION }} Release" - name: Create GitHub Release id: create_release From f2ac3dc7680a3f172d387f0c6cac166e3eafa0d5 Mon Sep 17 00:00:00 2001 From: misyaguziya <53165965+misyaguziya@users.noreply.github.com> Date: Sat, 7 Jun 2025 21:54:47 +0900 Subject: [PATCH 7/8] [Update] Clean up comments and ensure permissions are set for release job --- .github/workflows/release.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8dbecba0..9264cdc0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,6 +9,8 @@ jobs: release: name: Build VRCT runs-on: windows-latest + permissions: + contents: write steps: - name: Checkout code uses: actions/checkout@v4 @@ -16,17 +18,17 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v4 with: - node-version: '22.15.0' # プロジェクトに合わせて調整してください + node-version: '22.15.0' - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.11' # プロジェクトに合わせて調整してください + python-version: '3.11' - name: Set up Rust uses: actions-rs/toolchain@v1 with: - toolchain: stable # プロジェクトに合わせて調整してください + toolchain: stable profile: minimal override: true @@ -44,7 +46,7 @@ jobs: - name: Get version from tag id: get_version - shell: pwsh # 明示的に PowerShell を指定 + shell: pwsh run: | $TAG_WITH_V = $env:GITHUB_REF -replace "^refs/tags/", "" $VERSION_NUM = $TAG_WITH_V -replace "^v", "" From 636eb023929d94fd1da0ad1c558915d1e8175866 Mon Sep 17 00:00:00 2001 From: misyaguziya <53165965+misyaguziya@users.noreply.github.com> Date: Sun, 8 Jun 2025 09:54:22 +0900 Subject: [PATCH 8/8] [Update] Fix Hugging Face upload repository path and set release name to version --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9264cdc0..daec6629 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -57,8 +57,8 @@ jobs: HF_TOKEN: ${{ secrets.HF_TOKEN }} run: | pip install huggingface_hub - huggingface-cli upload misyaguziya/VRCT VRCT.zip VRCT.zip --repo-type dataset --commit-message "👍️[Update] ${{ env.VERSION }} Release" - huggingface-cli upload misyaguziya/VRCT VRCT_cuda.zip VRCT_cuda.zip --repo-type dataset --commit-message "👍️[Update] ${{ env.VERSION }} Release" + huggingface-cli upload ms-software/VRCT VRCT.zip VRCT.zip --repo-type dataset --commit-message "👍️[Update] ${{ env.VERSION }} Release" + huggingface-cli upload ms-software/VRCT VRCT_cuda.zip VRCT_cuda.zip --repo-type dataset --commit-message "👍️[Update] ${{ env.VERSION }} Release" - name: Create GitHub Release id: create_release @@ -67,7 +67,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} + release_name: ${{ env.VERSION }} draft: false prerelease: false