From 0b292b267013471233c23a2390a61c38af8efc83 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sat, 30 Dec 2023 00:01:58 +0900 Subject: [PATCH] Build package --- .github/workflows/test.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c7a40d7..68dd667 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -30,3 +30,23 @@ jobs: - name: RDoc coverage run: rdoc -C if: ${{ matrix.ruby == needs.ruby-versions.outputs.latest && matrix.os == 'ubuntu-latest' }} + - id: build + run: | + rake build:checksum + ls -l pkg/*.gem checksums/* + cat checksums/* + echo "pkg=${GITHUB_REPOSITORY#*/}-${PLATFORM:-${RUNNING_OS%-*}}" >> $GITHUB_OUTPUT + env: + RUNNING_OS: ${{matrix.os}} + if: >- + ${{ + github.event_name == 'push' && + matrix.ruby == needs.ruby-versions.outputs.latest + }} + shell: bash + - name: Upload package + uses: actions/upload-artifact@v4 + with: + path: pkg/*.gem + name: ${{steps.build.outputs.pkg}} + if: ${{ steps.build.outcome == 'success' }}