Skip to content

Commit

Permalink
inputs.is_productionを残す
Browse files Browse the repository at this point in the history
  • Loading branch information
qryxip committed Sep 2, 2024
1 parent ff70980 commit b87afd8
Showing 1 changed file with 33 additions and 2 deletions.
35 changes: 33 additions & 2 deletions .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ on:
type: boolean
required: false
default: false
# TODO: ライセンス表記およびモデル配布形体の方針が固まったら廃止
# <https://github.com/VOICEVOX/voicevox_core/pull/825#discussion_r1740115058>
is_production:
description: "製品版をビルドする"
type: boolean
required: false
default: false
release:
types:
- published
Expand Down Expand Up @@ -186,6 +193,18 @@ jobs:
run: |
echo "$ANDROID_NDK/toolchains/llvm/prebuilt/linux-x86_64/bin" >> "$GITHUB_PATH"
echo "AR_${{ matrix.target }}=llvm-ar" >> "$GITHUB_ENV"
- name: Checkout VOICEVOX RESOURCE
if: inputs.is_production
uses: actions/checkout@v4
with:
repository: VOICEVOX/voicevox_resource
ref: ${{ env.VOICEVOX_RESOURCE_VERSION }}
path: download/resource
- name: Raplace resource
if: inputs.is_production
shell: bash
run:
mv -f download/resource/core/README.md ./README.md
- name: Install cargo-binstall
uses: taiki-e/install-action@cargo-binstall
- name: Install cargo-edit
Expand Down Expand Up @@ -322,13 +341,25 @@ jobs:
${{ env.ASSET_NAME }}.zip
target_commitish: ${{ github.sha }}

deploy_sample_model:
deploy_model:
runs-on: ubuntu-latest
needs: config
env:
ASSET_NAME: sample-model-${{ needs.config.outputs.version }}
ASSET_NAME: model-${{ needs.config.outputs.version }}
steps:
- uses: actions/checkout@v4
- name: Checkout VOICEVOX FAT RESOURCE
if: inputs.is_production
uses: actions/checkout@v4
with:
repository: VOICEVOX/voicevox_fat_resource
ref: ${{ env.VOICEVOX_FAT_RESOURCE_VERSION }}
path: download/fat_resource
- name: Raplace resource
if: inputs.is_production
shell: bash
run:
rm -r ./model; mv download/fat_resource/core/model ./model
- name: Create artifact
run: |
mkdir "artifact"
Expand Down

0 comments on commit b87afd8

Please sign in to comment.