Add files via upload #8857
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: CI | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
build_and_release: | |
name: ビルド & リリース | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: リソースパックとして機能するディレクトリを見つける | |
run: find . -mindepth 2 -maxdepth 2 -type f -iname pack.mcmeta | parallel echo {//} > pack.txt | |
- name: 見つけたディレクトリからリソースパックの作成 | |
run: parallel -a pack.txt --wd {} zip -r "$PWD"/{/}.zip . | |
- name: 作成したリソースパックを表示する | |
run: find . -maxdepth 1 -type f -name "*.zip" | |
- uses: softprops/[email protected] | |
with: | |
tag_name: action-v${{ github.run_number }} | |
files: '*.zip' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |