test #107
Workflow file for this run
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
name: TexturePackGenerator | |
on: | |
push: | |
tags: | |
- 'v1.*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Replace Text # 文字列置換処理 | |
run: | | |
cd ./pack | |
# タグ名に置き換え | |
sed -e "s/\${tag}/${{ github.ref_name }}/g" pack.mcmeta > pack.mcmeta_rep | |
mv pack.mcmeta_rep pack.mcmeta | |
- name: Run Generate Script # 生成スクリプトを実行 | |
run: | | |
cd ./generate/scripts | |
chmod +x ./generator.main.kts | |
./generator.main.kts | |
- name: Generate ZIP | |
run: | | |
cd ./out/TexturePack | |
zip TexturePack -r ./* | |
- name: mv Out Files | |
run: | | |
mkdir upload && mv out/TexturePack/TexturePack.zip upload/ | |
mv out/pack_map.json upload/ | |
- name: Upload Artifact #アーティファクトをアップロード | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Release | |
path: upload/* | |
- name: GitHub Releases #Githubにリリース | |
uses: softprops/action-gh-release@v1 | |
with: | |
name: ShortLifeTexture - ${{ github.ref_name }} | |
body: | | |
ダウンロードはこちらから! | |
[ダウンロード](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/TexturePack.zip) | |
Build by ${{ github.actor }} | |
files: upload/* |