Skip to content

Commit

Permalink
リリースパイプラインにCLAファイルの取り扱いを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
kharada7 committed Jul 29, 2024
1 parent 6a7ff47 commit 428e552
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build-and-release-documents.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ env:
DOCUMENT_OUTPUT_FOLDER_NAME: build-artifacts
DOCUMENT_ARTIFACTS_FILENAME: docs.zip
COMPRESSED_SOURCE_PATH: contents/samples/downloads
CLA_FILE_INPUT_PATH: contents/assets/files/CLA.pdf
CLA_FILE_DESTINATION_PATH: documents/downloads/CLA.pdf

jobs:
build:
Expand Down Expand Up @@ -52,6 +54,12 @@ jobs:
with:
compressed-source-path: ${{ env.DOCUMENT_BASE_PATH }}/${{ env.COMPRESSED_SOURCE_PATH }}

- name: CLA ファイルのコピー
uses: ./.github/workflows/copy-cla-file
with:
cla-file-path: ${{ env.CLA_FILE_INPUT_PATH }}
cla-file-destination-path: ${{ env.CLA_FILE_DESTINATION_PATH }}

- name: ドキュメントのビルド
uses: ./.github/workflows/build-documents
with:
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/copy-cla-file/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: "CLA ファイルのコピー"
description: "CLA.pdf をコピーします。"
inputs:
cla-file-path:
description: "CLA ファイルの場所を示すパス"
required: true
cla-file-destination-path:
description: "CLA ファイルのコピー先を示すパス"
required: true
runs:
steps:
- name: CLA.pdf のコピー
shell: bash
run: |
cd documents
cp ${GITHUB_WORKSPACE}/${{ inputs.cla-file-path }} ${GITHUB_WORKSPACE}/${{ inputs.cla-file-destination-path }}

0 comments on commit 428e552

Please sign in to comment.