From 0d67f0f21791094c3a42304dc27f7d5b9f1cf3f6 Mon Sep 17 00:00:00 2001 From: sevenc-nanashi Date: Sat, 1 Jun 2024 19:46:47 +0900 Subject: [PATCH] Fix: jobs -> needs --- .github/workflows/build.yml | 12 ++++++------ README.md | 5 ++--- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 88eff68..372741b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -89,9 +89,9 @@ jobs: - name: Build rust run: | - echo "Building version ${{ jobs.info.outputs.version }}" + echo "Building version ${{ needs.info.outputs.version }}" cargo install cargo-edit - cargo set-version ${{ jobs.info.outputs.version }} -p cantari + cargo set-version ${{ needs.info.outputs.version }} -p cantari cargo test --all cargo build --release -vv @@ -103,17 +103,17 @@ jobs: cp target/release/{cantari,cantari.exe} archive || true cp crates/cantari/engine_manifest.json archive cd archive - zip -r ../cantari-${{ jobs.info.outputs.version }}${{ matrix.suffix }}.zip . + zip -r ../cantari-${{ needs.info.outputs.version }}${{ matrix.suffix }}.zip . cd .. - mv cantari-${{ jobs.info.outputs.version }}${{ matrix.suffix }}.zip cantari-${{ jobs.info.outputs.version }}${{ matrix.suffix }}.vvpp + mv cantari-${{ needs.info.outputs.version }}${{ matrix.suffix }}.zip cantari-${{ needs.info.outputs.version }}${{ matrix.suffix }}.vvpp - name: Create Release uses: softprops/action-gh-release@v2 with: - tag_name: v${{ jobs.info.outputs.version }} + tag_name: v${{ needs.info.outputs.version }} prerelease: true files: | - cantari-${{ jobs.info.outputs.version }}${{ matrix.suffix }}.vvpp + cantari-${{ needs.info.outputs.version }}${{ matrix.suffix }}.vvpp set-information: needs: - info diff --git a/README.md b/README.md index 83d9e43..712745d 100644 --- a/README.md +++ b/README.md @@ -31,8 +31,7 @@ MIT License で公開しています。詳しくは[LICENSE](LICENSE)をご覧 1. CHANGELOG.md を更新 2. `cargo test` -3. `git commit -am "Update: v0.0.0"` -4. `git push origin main` -5. `gh workflow run build.yml -F version=0.0.0` +3. `git push origin main` +4. `gh workflow run build.yml -F version=0.0.0` -->