Skip to content

Commit

Permalink
リリースビルドにドキュメントファイルを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
Gakuto1112 committed May 6, 2024
1 parent 1772347 commit e92c282
Showing 1 changed file with 25 additions and 5 deletions.
30 changes: 25 additions & 5 deletions .github/workflows/build_on_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,40 @@ jobs:
name: Build
uses: ./.github/workflows/build.yml
upload_release_assets:
name: Upload artifact as release asset
name: Attach artifact to release assets
needs: build
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4.1.4
- name: Prepare output directory
run: |
mkdir ./out
mkdir ./out/japanese
- name: Download artifact
uses: actions/download-artifact@v4.1.4
with:
with:
name: japanese
path: ./
path: ./out/japanese
- name: Copy necessary file
run: cp ./LICENSE ./out/LICENSE
- name: Create README.txt
run: |
cat << EOF > ./out/README.txt
翻訳データの使用方法や注意事項などは下記のリンクのREADMEをお読みください。
https://github.com/Gakuto1112/Stormworks-JapaneseTranslation/blob/main/.github/README.md
Please read README at the link below for instructions and notes for the translation data.
https://github.com/Gakuto1112/Stormworks-JapaneseTranslation/blob/main/.github/CONTRIBUTING_en.md
EOF
- name: Zip artifact
run: zip -r ./japanese.zip ./
working-directory: ./out
- name: Upload artifact as release asset
run: gh release upload ${{ github.event.release.tag_name }} ./japanese.zip --repo ${{ github.repository }}
run: gh release upload ${TAG_NAME} ./out/japanese.zip --repo ${REPOSITORY}
env:
GH_TOKEN: ${{ github.token }}
GH_TOKEN: ${{ github.token }}
TAG_NAME: ${{ github.event.release.tag_name }}
REPOSITORY: ${{ github.repository }}

0 comments on commit e92c282

Please sign in to comment.