From 8cfd801420236b2da349b295233c40f56ab37c21 Mon Sep 17 00:00:00 2001 From: Iwasa Kazmi Date: Sun, 11 Feb 2024 21:29:32 +0900 Subject: [PATCH] update gh action workflow --- .github/workflows/build-devel.yml | 11 ++++++----- .github/workflows/build-release.yml | 10 +++++----- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build-devel.yml b/.github/workflows/build-devel.yml index 50889a2..72b04c8 100644 --- a/.github/workflows/build-devel.yml +++ b/.github/workflows/build-devel.yml @@ -8,19 +8,20 @@ jobs: if: startsWith(github.ref, 'refs/tags/') runs-on: windows-2022 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ github.sha }} - run: cmd.exe /c build\buildall.bat Release GA - run: dir; dir bin; dir bin\Release - run: Compress-Archive "bin\Release\*" "bin\Poderosa-snapshot-${{ github.ref_name }}.zip" - run: dir bin - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: build-logs path: build/*.log - - uses: softprops/action-gh-release@v1 + - uses: ncipollo/release-action@v1 with: - target_commitish: devel + draft: true + generateReleaseNotes: true prerelease: true - files: bin/*.zip + artifacts: bin/*.zip diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 875e1d1..e30d933 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -8,7 +8,7 @@ jobs: if: startsWith(github.ref, 'refs/tags/') runs-on: windows-2022 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ github.sha }} - run: cmd.exe /c build\buildall.bat Release GA @@ -18,12 +18,12 @@ jobs: - run: Compress-Archive "dist\Poderosa" "dist\Poderosa-${{ github.ref_name }}-bin.zip" - run: Compress-Archive "dist\ContributedPlugins" "dist\ContributedPlugins-${{ github.ref_name }}-bin.zip" - run: dir dist - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: build-logs path: build/*.log - - uses: softprops/action-gh-release@v1 + - uses: ncipollo/release-action@v1 with: - target_commitish: master draft: true - files: dist/*.zip + generateReleaseNotes: true + artifacts: dist/*.zip