-
Notifications
You must be signed in to change notification settings - Fork 305
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add: preview_pages用のWorkflowを追加 (#2342)
Co-authored-by: Hiroshiba <[email protected]>
- Loading branch information
1 parent
47f03f8
commit 6355ee9
Showing
4 changed files
with
63 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: "Trigger preview-pages' workflow" | ||
|
||
# プレビュー用ページのワークフローを起動する。 | ||
# 詳細: https://github.com/voicevox/preview-pages?tab=readme-ov-file#%E4%BB%95%E7%B5%84%E3%81%BF | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- synchronize | ||
- closed | ||
- reopened | ||
push: | ||
branches: | ||
- main | ||
- project-* | ||
|
||
jobs: | ||
trigger: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Trigger Workflow | ||
run: | | ||
gh workflow run -R voicevox/preview-pages update_pages.yml | ||
env: | ||
GH_TOKEN: ${{ secrets.TRIGGER_PREVIEW_PAGES_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: "Build Preview Pages" | ||
|
||
# プレビュー用ページをビルドする。 | ||
# 詳細: https://github.com/voicevox/preview-pages?tab=readme-ov-file#%E4%BB%95%E7%B5%84%E3%81%BF | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- project-* | ||
pull_request: | ||
|
||
jobs: | ||
update_pages: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup environment | ||
uses: ./.github/actions/setup-environment | ||
|
||
- name: Build | ||
run: | | ||
npm run storybook:build -- --preview-url ./ --output-dir dist_preview/storybook | ||
npm run browser:build -- --base ./ --outDir dist_preview/editor | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: preview-pages | ||
path: dist_preview |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,3 +44,6 @@ electron-builder.yml | |
|
||
# Storybook | ||
storybook-static/ | ||
|
||
# Preview Build Output | ||
dist_preview/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters